summaryrefslogtreecommitdiff
path: root/scons/crossmingw.py
diff options
context:
space:
mode:
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'])