aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraziel-2014-02-22 00:32:54 +0200
committerD G Turner2014-03-22 01:13:45 +0000
commit554a1abae12c465f18a1b0265c185d9d5a0f12b2 (patch)
treee0892f997a767677d1b02169d5e6735a9ccba8ea
parenta3575d149b711c7cc0db63b453f9adba1e704bc0 (diff)
downloadscummvm-rg350-554a1abae12c465f18a1b0265c185d9d5a0f12b2.tar.gz
scummvm-rg350-554a1abae12c465f18a1b0265c185d9d5a0f12b2.tar.bz2
scummvm-rg350-554a1abae12c465f18a1b0265c185d9d5a0f12b2.zip
CONFIGURE: Modify AmigaOS debug information format to plain stabs.
As the GCC manual notes, "On most systems that use stabs format, -g enables use of extra debugging information that only GDB can use; this extra information makes debugging work better in GDB but will probably make other debuggers crash or refuse to read the program." -gstabs produces stabs without GDB extensions, and thus the AmigaOS debugger will work.
-rwxr-xr-xconfigure12
1 files changed, 10 insertions, 2 deletions
diff --git a/configure b/configure
index 74d1264f20..f964db3386 100755
--- a/configure
+++ b/configure
@@ -1487,8 +1487,16 @@ caanoo | gp2x | gp2xwiz | openpandora | ps2)
esac
if test "$_debug_build" != no; then
- # debug mode not explicitly disabled -> compile with -g
- CXXFLAGS="$CXXFLAGS -g"
+ # debug mode not explicitly disabled -> compile with debug information
+ case $_host_os in
+ amigaos*)
+ # AmigaOS debugger uses plain stabs, with no gdb extensions.
+ CXXFLAGS="$CXXFLAGS -gstabs"
+ ;;
+ *)
+ # Use the system default format for debug info.
+ CXXFLAGS="$CXXFLAGS -g"
+ esac
fi
if test "$_release_build" = yes; then