Use get_linker_search_args(libdir) instead of '-L'+libdir

pull/2964/head
Benjamin Redelings 7 years ago
parent a8c051256f
commit f68bae49da
  1. 4
      mesonbuild/dependencies/misc.py

@ -429,7 +429,7 @@ class BoostDependency(ExternalDependency):
args = []
# TODO: should this check self.libdir?
if self.libdir:
args.append('-L' + self.libdir)
args += self.compiler.get_linker_search_args(self.libdir)
for lib in self.requested_modules:
args += self.lib_modules['boost_' + lib]
return args
@ -447,7 +447,7 @@ class BoostDependency(ExternalDependency):
return self.get_win_link_args()
args = []
for dir in self.extra_lib_dirs():
args += ['-L' + dir]
args += self.compiler.get_linker_search_args(self.libdir)
for lib in self.requested_modules:
args += self.lib_modules['boost_' + lib]
return args

Loading…
Cancel
Save