mirror of https://github.com/mpv-player/mpv
meson: add -Bsymbolic for libmpv
This is required when linking ffmpeg statically and generally good practice to have on shared libraries anyway. Prerequisit for fixes in mpv-build for: https://github.com/mpv-player/mpv-build/issues/215 https://github.com/haasn/libplacebo/issues/198
This commit is contained in:
parent
02b49458a3
commit
bced1eec4e
|
@ -1723,6 +1723,7 @@ minor = client_h_define.split('|')[1].strip('() ')
|
|||
client_api_version = major + '.' + minor + '.0'
|
||||
|
||||
libmpv = library('mpv', sources, dependencies: dependencies, gnu_symbol_visibility: 'hidden',
|
||||
link_args: cc.get_supported_link_arguments(['-Wl,-Bsymbolic']),
|
||||
version: client_api_version, include_directories: includedir,
|
||||
install: get_option('libmpv'), build_by_default: get_option('libmpv'))
|
||||
|
||||
|
|
Loading…
Reference in New Issue