diff options
author | Akemi <der.richter@gmx.de> | 2018-02-14 20:04:03 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-02-16 00:48:34 -0800 |
commit | a17456608c0eb8dce61951b1beb0cd64e29a0f0a (patch) | |
tree | 3e686764320ab72629e0d88e0ae6813aaa1fc62d /wscript_build.py | |
parent | 31ee350cce87463217d8bf781a31775008fa7f65 (diff) | |
download | mpv-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 'wscript_build.py')
-rw-r--r-- | wscript_build.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/wscript_build.py b/wscript_build.py index 4627a9fcd5..7814958fe2 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -152,6 +152,13 @@ def build(ctx): bridge, header, tgt, src) return task.exec_command(cmd) + if ctx.dependency_satisfied('cocoa') and ctx.env.MACOS_SDK: + # on macOS we explicitly need to set the SDK path, otherwise it can lead to + # linking warnings or errors + ctx.env.append_value('LINKFLAGS', [ + '-isysroot', ctx.env.MACOS_SDK + ]) + if ctx.dependency_satisfied('macos-cocoa-cb'): swift_source = [ ( "video/out/cocoa_cb_common.swift" ), |