Skip to content

Commit

Permalink
builder: use fPIC for Linux libopus
Browse files Browse the repository at this point in the history
  • Loading branch information
gnattu committed Dec 20, 2024
1 parent 80bf279 commit 3756ca7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion builder/scripts.d/50-libopus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3756ca7

Please sign in to comment.