diff options
author | Alexis Nootens <me@axn.io> | 2017-03-02 14:40:14 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-03-06 15:37:44 +0100 |
commit | 1245ac1dc527e10c57b40f9c82c652a68904c86e (patch) | |
tree | 21c6b03a023f4db3961a069f453e7c4e2938168e | |
parent | e22604135534e90b257a7575fb500b5762fc6423 (diff) | |
download | mpv-1245ac1dc527e10c57b40f9c82c652a68904c86e.tar.bz2 mpv-1245ac1dc527e10c57b40f9c82c652a68904c86e.tar.xz |
wscript: substitute cplugins linker flag for macOS compatiblity
For an unknown reason, '-Wl -export-dynamic' doesn't work anymore
on the last macOS build (10.12.3 with Apple LLVM 8.0.0) so forcing
cplugins is useless because the check fails. Replacing the linker
option with its substitute '-rdynamic' do the trick.
The syms module from waf still works as expected and only the
symbols specified in mpv.def are exported.
-rw-r--r-- | wscript | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -72,7 +72,7 @@ build_options = [ 'desc': 'C plugins', 'deps': [ 'libdl' ], 'default': 'disable', - 'func': check_cc(linkflags=['-Wl,-export-dynamic']), + 'func': check_cc(linkflags=['-rdynamic']), }, { 'name': 'dlopen', 'desc': 'dlopen', @@ -1033,7 +1033,7 @@ def configure(ctx): # not linked against libmpv. The C plugin needs to be able to pick # up the libmpv symbols from the binary. We still restrict the set # of exported symbols via mpv.def. - ctx.env.LINKFLAGS += ['-Wl,-export-dynamic'] + ctx.env.LINKFLAGS += ['-rdynamic'] ctx.store_dependencies_lists() |