Bug #594: cygwin won't build.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Wed, 17 Jun 2009 11:26:36 +0100
changeset 4535 0878cd580565
parent 4534 2680abc768f2
child 4549 39908c16e620
Bug #594: cygwin won't build.
bindings/python/wscript
wscript
--- a/bindings/python/wscript	Mon Jun 15 15:42:32 2009 -0700
+++ b/bindings/python/wscript	Wed Jun 17 11:26:36 2009 +0100
@@ -439,6 +439,8 @@
         bindgen.name = "pybindgen-command"
 
         pymod = bld.new_task_gen('cxx', 'shlib', 'pyext')
+        if sys.platform == 'cygwin':
+            pymod.features.append('implib') # workaround for WAF bug #472
         pymod.source = ['ns3module.cc', 'ns3module_helpers.cc']
         pymod.includes = '.'
         for module in scanned_modules:
--- a/wscript	Mon Jun 15 15:42:32 2009 -0700
+++ b/wscript	Wed Jun 17 11:26:36 2009 +0100
@@ -498,6 +498,8 @@
         lib.target = 'ns3'
         if lib.env['CXX_NAME'] == 'gcc' and env['WL_SONAME_SUPPORTED']:
             lib.env.append_value('LINKFLAGS', '-Wl,--soname=%s' % ccroot.get_target_name(lib))
+        if sys.platform == 'cygwin':
+            lib.features.append('implib') # workaround for WAF bug #472
 
     if env['NS3_ENABLED_MODULES']:
         lib.add_objects = list(modules)