From 83155aa11f1b12982ba501a495d8ccb15dc9b92e Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Wed, 14 Jan 2009 11:36:02 +0000 Subject: scons: Use .a suffix for MinGW. This allows to build MinGW and MSVC within the same dir. --- scons/crossmingw.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'scons') diff --git a/scons/crossmingw.py b/scons/crossmingw.py index cf4887ba464..b1141c97ce8 100644 --- a/scons/crossmingw.py +++ b/scons/crossmingw.py @@ -162,18 +162,16 @@ def generate(env): # Some setting from the platform also have to be overridden: env['OBJPREFIX'] = '' env['OBJSUFFIX'] = '.o' - env['LIBPREFIX'] = 'lib' - env['LIBSUFFIX'] = '.a' env['SHOBJPREFIX'] = '$OBJPREFIX' env['SHOBJSUFFIX'] = '$OBJSUFFIX' env['PROGPREFIX'] = '' env['PROGSUFFIX'] = '.exe' - env['LIBPREFIX'] = '' - env['LIBSUFFIX'] = '.lib' + env['LIBPREFIX'] = 'lib' + env['LIBSUFFIX'] = '.a' env['SHLIBPREFIX'] = '' env['SHLIBSUFFIX'] = '.dll' - env['LIBPREFIXES'] = [ '$LIBPREFIX' ] - env['LIBSUFFIXES'] = [ '$LIBSUFFIX' ] + env['LIBPREFIXES'] = [ 'lib', '' ] + env['LIBSUFFIXES'] = [ '.a', '.lib' ] env.AppendUnique(LIBS = ['iberty']) env.AppendUnique(LINKFLAGS = ['-Wl,--enable-stdcall-fixup']) -- cgit v1.2.3 From 47ca0234dc9f83808cb141944537c78eaade5d55 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Wed, 14 Jan 2009 13:03:09 +0000 Subject: scons: Use -std=gnu99 It a scary world out there: people use all sort of non standard C stuff, and we must enable support for that in here in order to build. -pedantic still warn us when we use that nonstandard though. --- scons/gallium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scons') diff --git a/scons/gallium.py b/scons/gallium.py index 3d5a0532eca..1218067985e 100644 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -313,7 +313,7 @@ def generate(env): '-Wmissing-prototypes', '-Wno-long-long', '-ffast-math', - '-std=c99', + '-std=gnu99', '-pedantic', '-fmessage-length=0', # be nice to Eclipse ] -- cgit v1.2.3