scons: Use .a suffix for MinGW.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 14 Jan 2009 11:36:02 +0000 (11:36 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 14 Jan 2009 11:40:31 +0000 (11:40 +0000)
This allows to build MinGW and MSVC within the same dir.

scons/crossmingw.py

index cf4887ba464924dc2032407ba2720eda8ef4a12b..b1141c97ce8a26370f4a15ea7695eb7f7e54ace4 100644 (file)
@@ -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'])