aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-01-02 22:26:31 +0000
committerNirbheek Chauhan <nirbheek@centricular.com>2018-02-19 01:32:16 +0530
commit4195cdd6fd478ebba24dd6833394f0753b3cf87f (patch)
tree7ec48efe9675324fd3157a0118c9b78b1cb818a0
parent0e2577faf8da93d56a80cadc270ace5af8d72852 (diff)
downloadmeson-4195cdd6fd478ebba24dd6833394f0753b3cf87f.zip
meson-4195cdd6fd478ebba24dd6833394f0753b3cf87f.tar.gz
meson-4195cdd6fd478ebba24dd6833394f0753b3cf87f.tar.bz2
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 1607ed5..40efdeb 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'