From bced1eec4e811c260891ca538a84145523fa2dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Tue, 5 Sep 2023 22:06:13 +0200 Subject: [PATCH] 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 --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index e015e6ef35..0786855b0a 100644 --- a/meson.build +++ b/meson.build @@ -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'))