Skip to content

Commit 937c7b2

Browse files
authored
Pass through CXXFLAGS from parent environment
Currently this clobbers any existing CXXFLAGS when configuring x264, this will remove any user specified optimisation or hardening flags. Changing it to prepend to any potential existing CXXFLAG.
1 parent 8d99df0 commit 937c7b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-ffmpeg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ if $NONFREE_AND_GPL; then
481481
cd "${PACKAGES}"/x264-5db6aa6 || exit
482482

483483
if [[ "$OSTYPE" == "linux-gnu" ]]; then
484-
execute ./configure --prefix="${WORKSPACE}" --enable-static --enable-pic CXXFLAGS="-fPIC"
484+
execute ./configure --prefix="${WORKSPACE}" --enable-static --enable-pic CXXFLAGS="-fPIC ${CXXFLAGS}"
485485
else
486486
execute ./configure --prefix="${WORKSPACE}" --enable-static --enable-pic
487487
fi

0 commit comments

Comments
 (0)