bindings/python/wscript
changeset 4393 4d9d3ff807a9
parent 4326 179f86838e62
child 4394 dced016d5f49
--- a/bindings/python/wscript	Tue Apr 21 14:38:47 2009 +0200
+++ b/bindings/python/wscript	Wed Apr 22 13:06:22 2009 +0200
@@ -445,6 +445,10 @@
         pymod.target = 'ns3/_ns3'
         pymod.name = 'ns3module'
         pymod.uselib_local = "ns3"
+        if pymod.env['ENABLE_STATIC_NS3']:
+            pymod.env.append_value('LINKFLAGS', '-Wl,--whole-archive,-Bstatic')
+            pymod.env.append_value('LINKFLAGS', '-lns3')
+            pymod.env.append_value('LINKFLAGS', '-Wl,-Bdynamic,--no-whole-archive')
 
         defines = list(pymod.env['CXXDEFINES'])
         defines.extend(['NS_DEPRECATED=', 'NS3_DEPRECATED_H'])