diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-01-26 20:16:36 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-01-26 20:28:04 +0000 |
commit | 3d607ef37fdfa0871096c99674af92278f33246b (patch) | |
tree | e8f191ff707a5c79928bca921ff03307dfc65d6f /scons | |
parent | f5fad95455bb3f9bd731451ea9811e3d0cc51660 (diff) |
scons: Request the stabs debug info format for Mingw.
Mingw gdb apparently chokes on dwarf debug info.
Diffstat (limited to 'scons')
-rw-r--r-- | scons/crossmingw.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scons/crossmingw.py b/scons/crossmingw.py index 53b4d2e47..bf81f16fd 100644 --- a/scons/crossmingw.py +++ b/scons/crossmingw.py @@ -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']) |