[Scummvm-git-logs] scummvm master -> 5bfaf8972919a66c0a15456558b3b011b6d471a9
dwatteau
noreply at scummvm.org
Sat Nov 19 10:29:33 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
5bfaf89729 CONFIGURE: Use -gstabs+ for macOS <= 10.5 debug builds
Commit: 5bfaf8972919a66c0a15456558b3b011b6d471a9
https://github.com/scummvm/scummvm/commit/5bfaf8972919a66c0a15456558b3b011b6d471a9
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2022-11-19T11:26:50+01:00
Commit Message:
CONFIGURE: Use -gstabs+ for macOS <= 10.5 debug builds
We're using a newer toolchain there, but macOS 10.4 and 10.5 still rely
on an ancient version of GDB which chokes on C++11 symbols (such as
decltype(nullptr)), even when forcing DWARF-2 symbols only with -gdwarf2
-gstrict-dwarf.
-gstabs+ is more limited, but at least that one works with GDB, so use
it when making a debug build for those systems.
Changed paths:
configure
diff --git a/configure b/configure
index 6c31dc3d1b0..7bbfa5644e0 100755
--- a/configure
+++ b/configure
@@ -2819,6 +2819,10 @@ EOF
# When building for MacOS X 10.5 or below
if test "$_macos_min_version" -lt 1060 ; then
add_line_to_config_mk 'MACOSX_LEOPARD_OR_BELOW = 1'
+ if test "$_debug_build" != no ; then
+ # Newer compiler but ancient gdb
+ append_var CXXFLAGS "-gstabs+"
+ fi
fi
# When building with SDK 10.14 or above, we cannot compile the 32 bits dock plugin
More information about the Scummvm-git-logs
mailing list