build: Fix waf-tools/boost.py
The defined logic sets STLIBPATH_BOOST variable even if static boost libraries have not been requested. Having this variable set, potentially prefers linking to pre-installed libns3-dev... libraries, instead of the compiled libraries.
This commit is contained in:
+6
-4
@@ -327,10 +327,12 @@ def check_boost(self, *k, **kw):
|
||||
Logs.warn('boost: static parameter is deprecated, use stlib instead.')
|
||||
self.start_msg('Checking boost libs')
|
||||
path, libs, stlibs = self.boost_get_libs(**params)
|
||||
self.env['LIBPATH_%s' % var] = [path]
|
||||
self.env['STLIBPATH_%s' % var] = [path]
|
||||
self.env['LIB_%s' % var] = libs
|
||||
self.env['STLIB_%s' % var] = stlibs
|
||||
if libs:
|
||||
self.env['LIBPATH_%s' % var] = [path]
|
||||
self.env['LIB_%s' % var] = libs
|
||||
if stlibs:
|
||||
self.env['STLIBPATH_%s' % var] = [path]
|
||||
self.env['STLIB_%s' % var] = stlibs
|
||||
self.end_msg('ok')
|
||||
if Logs.verbose:
|
||||
Logs.pprint('CYAN', ' path : %s' % path)
|
||||
|
||||
Reference in New Issue
Block a user