From 3d607ef37fdfa0871096c99674af92278f33246b Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 26 Jan 2009 20:16:36 +0000 Subject: scons: Request the stabs debug info format for Mingw. Mingw gdb apparently chokes on dwarf debug info. --- scons/crossmingw.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scons') diff --git a/scons/crossmingw.py b/scons/crossmingw.py index 53b4d2e47d..bf81f16fd6 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']) -- cgit v1.2.3