Modular bindings: make each python extension module link only to the required ns-3 modular libraries
This commit is contained in:
@@ -222,7 +222,7 @@ def ns3_python_bindings(bld):
|
||||
pymod.source = ['bindings/ns3module.cc']
|
||||
pymod.target = '%s/%s' % (bld.srcnode.find_dir("bindings/python/ns").relpath_gen(bld.path), module.replace('-', '_'))
|
||||
pymod.name = 'ns3module_%s' % module
|
||||
pymod.uselib_local = bld.env['NS3_ENABLED_MODULES']
|
||||
pymod.uselib_local = "ns3-"+module
|
||||
if pymod.env['ENABLE_STATIC_NS3']:
|
||||
if sys.platform == 'darwin':
|
||||
pymod.env.append_value('LINKFLAGS', '-Wl,-all_load')
|
||||
|
||||
Reference in New Issue
Block a user