mirror of
https://github.com/kirbylink/mpv-natives
synced 2026-11-18 21:09:01 +01:00
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.)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user