aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/misc.py
diff options
context:
space:
mode:
authorAdam C. Foltzer <acfoltzer@galois.com>2017-05-25 11:30:55 -0700
committerAdam C. Foltzer <acfoltzer@galois.com>2017-05-25 11:30:55 -0700
commitb290688ede302fd33969c313c67c8c85649bab7b (patch)
tree72b072b91fb383225aca2df7cdf7a59b5abceae2 /mesonbuild/dependencies/misc.py
parent80fd7106e8ec0a74ace0919f3c412bb8f5e869f7 (diff)
downloadmeson-b290688ede302fd33969c313c67c8c85649bab7b.zip
meson-b290688ede302fd33969c313c67c8c85649bab7b.tar.gz
meson-b290688ede302fd33969c313c67c8c85649bab7b.tar.bz2
look for static Boost libraries on *nix when requested
This was already mostly working before due to how the linker arguments were constructed, but this will now be more resilient to the case where dynamic libraries only are present.
Diffstat (limited to 'mesonbuild/dependencies/misc.py')
-rw-r--r--mesonbuild/dependencies/misc.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py
index 189e730..35e840c 100644
--- a/mesonbuild/dependencies/misc.py
+++ b/mesonbuild/dependencies/misc.py
@@ -203,7 +203,9 @@ class BoostDependency(Dependency):
self.lib_modules_mt[modname] = fname
def detect_lib_modules_nix(self):
- if mesonlib.is_osx() and not self.want_cross:
+ if self.static:
+ libsuffix = 'a'
+ elif mesonlib.is_osx() and not self.want_cross:
libsuffix = 'dylib'
else:
libsuffix = 'so'
@@ -221,7 +223,7 @@ class BoostDependency(Dependency):
name = lib.split('.')[0].split('_', 1)[-1]
# I'm not 100% sure what to do here. Some distros
# have modules such as thread only as -mt versions.
- if entry.endswith('-mt.so'):
+ if entry.endswith('-mt.{}'.format(libsuffix)):
self.lib_modules_mt[name] = True
else:
self.lib_modules[name] = True