scons: Request the stabs debug info format for Mingw.

Mingw gdb apparently chokes on dwarf debug info.
This commit is contained in:
José Fonseca 2009-01-26 20:16:36 +00:00
parent f5fad95455
commit 3d607ef37f
1 changed files with 4 additions and 0 deletions

View File

@ -173,6 +173,10 @@ def generate(env):
env['LIBPREFIXES'] = [ 'lib', '' ]
env['LIBSUFFIXES'] = [ '.a', '.lib' ]
# MinGW port of gdb does not handle well dwarf debug info which is the
# default in recent gcc versions
env.AppendUnique(CFLAGS = ['-gstabs'])
env.AppendUnique(LIBS = ['iberty'])
env.AppendUnique(SHLINKFLAGS = ['-Wl,--enable-stdcall-fixup'])
#env.AppendUnique(SHLINKFLAGS = ['-Wl,--kill-at'])