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 b1141c97ce8a26370f4a15ea7695eb7f7e54ace4..53b4d2e47d4e5bde0168c41fa865aded9fb749e5 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)