builder: use fPIC for Linux libopus

This commit is contained in:
gnattu
2024-12-21 00:39:41 +08:00
parent 80bf279816
commit 3756ca70c5
+7 -1
View File
@@ -40,7 +40,13 @@ ffbuild_dockerbuild() {
# reset CLFAGS because libopus may give up optimization if current CFLAGS contains value
CFLAGS_BACKUP="$CFLAGS"
export CFLAGS="-O3" # For some reason libopus will not add optimization flag, we have to set it ourselves
# For some reason libopus will not add optimization flag, we have to set it ourselves
if [[ $TARGET == mac* ]]; then
export CFLAGS="-O3"
else
export CFLAGS="-O3 -fPIC -DPIC"
fi
./configure "${myconf[@]}"
make -j$(nproc)