bug 1869: append local build directory before recursing into modules
This commit is contained in:
1 parent
19db0e31cb
commit
1b4424dbcc
2 files changed
+14
-2
No files matched your search
+7
-2
@@ -59,11 +59,16 @@ def configure(conf):
|
||||
if not conf.env['LIB_BOOST']:
|
||||
conf.env['LIB_BOOST'] = []
|
||||
|
||||
# Append blddir to the module path before recursing into modules
|
||||
blddir = os.path.abspath(os.path.join(conf.bldnode.abspath(), conf.variant))
|
||||
conf.env.append_value('NS3_MODULE_PATH', blddir)
|
||||
|
||||
for module in all_modules:
|
||||
conf.recurse(module, mandatory=False)
|
||||
|
||||
blddir = os.path.abspath(os.path.join(conf.bldnode.abspath(), conf.variant))
|
||||
conf.env.append_value('NS3_MODULE_PATH', blddir)
|
||||
# Remove duplicate path items
|
||||
conf.env['NS3_MODULE_PATH'] = wutils.uniquify_list(conf.env['NS3_MODULE_PATH'])
|
||||
|
||||
if Options.options.enable_rpath:
|
||||
conf.env.append_value('RPATH', '-Wl,-rpath,%s' % (os.path.join(blddir),))
|
||||
|
||||
|
||||
Reference in new issue
Block a user