summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-01-14 11:36:02 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-01-14 11:40:31 +0000
commit83155aa11f1b12982ba501a495d8ccb15dc9b92e (patch)
tree29a11e3748b4b46e98cb07b94479c4f414feb193
parent529f86fb113529d1ecf113dc45efade7fe185f94 (diff)
scons: Use .a suffix for MinGW.
This allows to build MinGW and MSVC within the same dir.
-rw-r--r--scons/crossmingw.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/scons/crossmingw.py b/scons/crossmingw.py
index cf4887ba46..b1141c97ce 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'])