From 009c5168608c4233584c4d676690dd75e945005c Mon Sep 17 00:00:00 2001 From: BtbN Date: Wed, 2 Nov 2022 22:09:11 +0100 Subject: [PATCH] Run ranlib on libvpx.a after install libvpx strips it, which mangles the symbol index when LTO is enabled. ranlib fixes it again. --- scripts.d/50-libvpx.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts.d/50-libvpx.sh b/scripts.d/50-libvpx.sh index 6dad9d4..c160b78 100755 --- a/scripts.d/50-libvpx.sh +++ b/scripts.d/50-libvpx.sh @@ -51,6 +51,9 @@ ffbuild_dockerbuild() { ./configure "${myconf[@]}" make -j$(nproc) make install + + # Work around strip breaking LTO symbol index + "$RANLIB" "$FFBUILD_PREFIX"/lib/libvpx.a } ffbuild_configure() {