diff options
author | raziel- | 2014-02-22 00:32:54 +0200 |
---|---|---|
committer | D G Turner | 2014-03-22 01:13:45 +0000 |
commit | 554a1abae12c465f18a1b0265c185d9d5a0f12b2 (patch) | |
tree | e0892f997a767677d1b02169d5e6735a9ccba8ea /configure | |
parent | a3575d149b711c7cc0db63b453f9adba1e704bc0 (diff) | |
download | scummvm-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.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |