wscript
changeset 4348 0572c4011b3d
parent 4333 89302376729e
child 4354 ded7c46b986b
--- a/wscript	Fri Apr 17 12:58:22 2009 +0200
+++ b/wscript	Fri Apr 17 12:44:11 2009 +0100
@@ -246,9 +246,11 @@
 
     env['PLATFORM'] = sys.platform
 
-    if sys.platform == 'win32':
-        if env['COMPILER_CXX'] == 'g++':
+    if conf.env['CXX_NAME'] == 'gcc':
+        if sys.platform == 'win32':
             env.append_value("LINKFLAGS", "-Wl,--enable-runtime-pseudo-reloc")
+        elif sys.platform == 'cygwin':
+            env.append_value("LINKFLAGS", "-Wl,--enable-auto-import")
 
     conf.sub_config('src')
     conf.sub_config('utils')