Link against the library files that we found during module detection.

0.44
Benjamin Redelings 7 years ago committed by Nirbheek Chauhan
parent e10e261160
commit 236c6b8628
  1. 13
      mesonbuild/dependencies/misc.py

@ -359,7 +359,9 @@ class BoostDependency(ExternalDependency):
pass
else:
continue
self.lib_modules[self.modname_from_filename(entry)] = os.path.basename(entry)
modname = self.modname_from_filename(entry)
if modname not in self.lib_modules:
self.lib_modules[modname] = entry
def get_win_link_args(self):
args = []
@ -379,14 +381,7 @@ class BoostDependency(ExternalDependency):
elif self.libdir:
args.append('-L' + self.libdir)
for lib in self.requested_modules:
# The compiler's library detector is the most reliable so use that first.
boost_lib = 'boost_' + lib
default_detect = self.compiler.find_library(boost_lib, self.env, [])
if default_detect is not None:
args += default_detect
elif boost_lib in self.lib_modules:
linkcmd = '-l' + boost_lib
args.append(linkcmd)
args += [self.lib_modules['boost_' + lib]]
return args
def get_sources(self):

Loading…
Cancel
Save