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:
Kacper Michajłow 2023-09-05 22:06:13 +02:00 committed by Dudemanguy
parent 02b49458a3
commit bced1eec4e
1 changed files with 1 additions and 0 deletions

View File

@ -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'))