summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-01-02 22:26:31 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2018-01-04 22:48:14 +0000
commit1a948b2e67bad0babed6b5a41d10c9e9f4236552 (patch)
tree29e5fc8f729bd37ff4ba723c1e7ed0c2407473ad
parent18675c3dea12220f95ffc58f3df2e9cc0fb25e84 (diff)
downloadmeson-1a948b2e67bad0babed6b5a41d10c9e9f4236552.tar.gz
Fix dependency('boost') on Cygwin
Fix dependency('boost') on Cygwin, broken in PR #2824 Like linux, Cygwin doesn't use -mt tags Not sure what's correct for BSDs and Haiku
-rw-r--r--mesonbuild/dependencies/misc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py
index cc0914c19..9614f1f0d 100644
--- a/mesonbuild/dependencies/misc.py
+++ b/mesonbuild/dependencies/misc.py
@@ -365,7 +365,7 @@ class BoostDependency(ExternalDependency):
for module in self.requested_modules:
args = None
libname = 'boost_' + module
- if self.is_multithreading and not mesonlib.for_linux(self.want_cross, self.env):
+ if self.is_multithreading and mesonlib.for_darwin(self.want_cross, self.env):
# - Linux leaves off -mt but libraries are multithreading-aware.
# - Mac requires -mt for multithreading, so should not fall back to non-mt libraries.
libname = libname + '-mt'