equal
deleted
inserted
replaced
443 for module in scanned_modules: |
443 for module in scanned_modules: |
444 pymod.source.append("ns3_module_%s.cc" % module) |
444 pymod.source.append("ns3_module_%s.cc" % module) |
445 pymod.target = 'ns3/_ns3' |
445 pymod.target = 'ns3/_ns3' |
446 pymod.name = 'ns3module' |
446 pymod.name = 'ns3module' |
447 pymod.uselib_local = "ns3" |
447 pymod.uselib_local = "ns3" |
|
448 if pymod.env['ENABLE_STATIC_NS3']: |
|
449 pymod.env.append_value('LINKFLAGS', '-Wl,--whole-archive,-Bstatic') |
|
450 pymod.env.append_value('LINKFLAGS', '-lns3') |
|
451 pymod.env.append_value('LINKFLAGS', '-Wl,-Bdynamic,--no-whole-archive') |
448 |
452 |
449 defines = list(pymod.env['CXXDEFINES']) |
453 defines = list(pymod.env['CXXDEFINES']) |
450 defines.extend(['NS_DEPRECATED=', 'NS3_DEPRECATED_H']) |
454 defines.extend(['NS_DEPRECATED=', 'NS3_DEPRECATED_H']) |
451 if Options.platform == 'win32': |
455 if Options.platform == 'win32': |
452 try: |
456 try: |