Bug #594: cygwin won't build.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Wed Jun 17 11:26:36 2009 +0100 (7 months ago)
changeset 45500878cd580565
parent 4549 2680abc768f2
child 4564 39908c16e620
Bug #594: cygwin won't build.
bindings/python/wscript
wscript
     1.1 --- a/bindings/python/wscript	Mon Jun 15 15:42:32 2009 -0700
     1.2 +++ b/bindings/python/wscript	Wed Jun 17 11:26:36 2009 +0100
     1.3 @@ -439,6 +439,8 @@
     1.4          bindgen.name = "pybindgen-command"
     1.5  
     1.6          pymod = bld.new_task_gen('cxx', 'shlib', 'pyext')
     1.7 +        if sys.platform == 'cygwin':
     1.8 +            pymod.features.append('implib') # workaround for WAF bug #472
     1.9          pymod.source = ['ns3module.cc', 'ns3module_helpers.cc']
    1.10          pymod.includes = '.'
    1.11          for module in scanned_modules:
     2.1 --- a/wscript	Mon Jun 15 15:42:32 2009 -0700
     2.2 +++ b/wscript	Wed Jun 17 11:26:36 2009 +0100
     2.3 @@ -498,6 +498,8 @@
     2.4          lib.target = 'ns3'
     2.5          if lib.env['CXX_NAME'] == 'gcc' and env['WL_SONAME_SUPPORTED']:
     2.6              lib.env.append_value('LINKFLAGS', '-Wl,--soname=%s' % ccroot.get_target_name(lib))
     2.7 +        if sys.platform == 'cygwin':
     2.8 +            lib.features.append('implib') # workaround for WAF bug #472
     2.9  
    2.10      if env['NS3_ENABLED_MODULES']:
    2.11          lib.add_objects = list(modules)