mpv-player / mpv-build

🔨 Helper scripts to compile mpv on Linux
http://mpv.io
403 stars 104 forks source link

scripts/mpv-config: pass -Wl,-Bsymbolic when building libmpv #209

Closed Dudemanguy closed 1 year ago

Dudemanguy commented 1 year ago

According to ffmpeg's own documentation* we have to add these linker flags to libmpv when building it against the static library. waf doesn't need this for mysterious, unknown reasons (the linker flags there are a bit different) but passing this works fine on meson. Just add an extra check to the mpv-config script to enable this if needed. Fixes #208.

*: https://ffmpeg.org/platform.html#Advanced-linking-configuration

CounterPillow commented 1 year ago

I've confirmed that this solves #208 for me, thanks!