summaryrefslogtreecommitdiffstats
path: root/scons/crossmingw.py
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-01-26 20:16:36 +0000
committerJosé Fonseca <[email protected]>2009-01-26 20:28:04 +0000
commit3d607ef37fdfa0871096c99674af92278f33246b (patch)
treee8f191ff707a5c79928bca921ff03307dfc65d6f /scons/crossmingw.py
parentf5fad95455bb3f9bd731451ea9811e3d0cc51660 (diff)
scons: Request the stabs debug info format for Mingw.
Mingw gdb apparently chokes on dwarf debug info.
Diffstat (limited to 'scons/crossmingw.py')
-rw-r--r--scons/crossmingw.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scons/crossmingw.py b/scons/crossmingw.py
index 53b4d2e47d4..bf81f16fd64 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'])