From 4195cdd6fd478ebba24dd6833394f0753b3cf87f Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Tue, 2 Jan 2018 22:26:31 +0000 Subject: [PATCH] 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 --- mesonbuild/dependencies/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index 1607ed510..40efdeb42 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'