summaryrefslogtreecommitdiffstats
path: root/waftools/checks
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2018-02-14 20:04:03 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-02-16 00:48:34 -0800
commita17456608c0eb8dce61951b1beb0cd64e29a0f0a (patch)
tree3e686764320ab72629e0d88e0ae6813aaa1fc62d /waftools/checks
parent31ee350cce87463217d8bf781a31775008fa7f65 (diff)
downloadmpv-a17456608c0eb8dce61951b1beb0cd64e29a0f0a.tar.bz2
mpv-a17456608c0eb8dce61951b1beb0cd64e29a0f0a.tar.xz
build: fix dependency check on macOS
235eb60 added a needed linking flag, but too soon. this lead to some of the configure checks to fail. add the flag in our build phase. Fixes #5528
Diffstat (limited to 'waftools/checks')
-rw-r--r--waftools/checks/custom.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/waftools/checks/custom.py b/waftools/checks/custom.py
index 14e59f3f49..698742406f 100644
--- a/waftools/checks/custom.py
+++ b/waftools/checks/custom.py
@@ -100,15 +100,7 @@ def check_cocoa(ctx, dependency_identifier):
includes = ctx.srcnode.abspath(),
linkflags = '-fobjc-arc')
- res = fn(ctx, dependency_identifier)
- # on macOS we explicitly need to set the SDK path, otherwise it can lead to
- # linking warnings or errors
- if res:
- ctx.env.append_value('LINKFLAGS', [
- '-isysroot', ctx.env.MACOS_SDK
- ])
-
- return res
+ return fn(ctx, dependency_identifier)
def check_openal(ctx, dependency_identifier):
checks = [