scons: Use --enable-stdcall-fixup only when building DLLs.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 24 Jan 2009 14:33:54 +0000 (14:33 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 24 Jan 2009 14:33:54 +0000 (14:33 +0000)
scons/crossmingw.py

index b1141c9..53b4d2e 100644 (file)
@@ -174,7 +174,8 @@ def generate(env):
     env['LIBSUFFIXES']    = [ '.a', '.lib' ]
 
     env.AppendUnique(LIBS = ['iberty'])
-    env.AppendUnique(LINKFLAGS = ['-Wl,--enable-stdcall-fixup'])
+    env.AppendUnique(SHLINKFLAGS = ['-Wl,--enable-stdcall-fixup'])
+    #env.AppendUnique(SHLINKFLAGS = ['-Wl,--kill-at'])
 
 def exists(env):
     return find(env)