From: José Fonseca Date: Mon, 26 Jan 2009 20:16:36 +0000 (+0000) Subject: scons: Request the stabs debug info format for Mingw. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d607ef37fdfa0871096c99674af92278f33246b;p=mesa.git scons: Request the stabs debug info format for Mingw. Mingw gdb apparently chokes on dwarf debug info. --- 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'])