From ccf3f3913c5f3615d50ef51abb768ae4be14dc64 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 1 Oct 2026 19:49:02 +0200 Subject: [PATCH] fix: build expat position-independent too expat is built with CMake, which does not force -fPIC for a static library; like alsa-lib it is linked into the shared libmpv.so and fails with the same relocation error. Enable CMAKE_POSITION_INDEPENDENT_CODE. (The meson-built dependencies already default to -fPIC for static libs.) --- ci/build-libmpv-linux.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/build-libmpv-linux.sh b/ci/build-libmpv-linux.sh index f7e4938..0d81d3a 100644 --- a/ci/build-libmpv-linux.sh +++ b/ci/build-libmpv-linux.sh @@ -121,6 +121,7 @@ _expat () { -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX="$prefix_dir" \ -DBUILD_SHARED_LIBS=OFF \ + -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_TOOLS=OFF cmake --build build -j$(nproc) cmake --install build