small fixups

This commit is contained in:
2024-03-22 12:05:41 -05:00
parent 4b03de8ceb
commit 7521a57513

View File

@@ -19,7 +19,7 @@ git clone --depth 1 https://github.com/Netflix/vmaf "$VMAF_DIR"
git clone --depth 1 https://code.videolan.org/videolan/dav1d.git "$DAV1D_DIR" git clone --depth 1 https://code.videolan.org/videolan/dav1d.git "$DAV1D_DIR"
git clone --depth 1 https://github.com/xiph/opus.git "$OPUS_DIR" git clone --depth 1 https://github.com/xiph/opus.git "$OPUS_DIR"
export ARCH=$(arch) export ARCH=$(uname -m)
export COMP_FLAGS="" export COMP_FLAGS=""
if [[ "$ARCH" == "x86_64" ]] if [[ "$ARCH" == "x86_64" ]]
then then
@@ -109,6 +109,7 @@ mkdir build
cd build || exit cd build || exit
make clean make clean
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON \ cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON \
-DENABLE_TESTS=OFF \
-DCMAKE_C_FLAGS="-flto -O3 $COMP_FLAGS" \ -DCMAKE_C_FLAGS="-flto -O3 $COMP_FLAGS" \
-DCMAKE_CXX_FLAGS="-flto -O3 $COMP_FLAGS" || exit -DCMAKE_CXX_FLAGS="-flto -O3 $COMP_FLAGS" || exit
make -j "$(nproc)" || exit make -j "$(nproc)" || exit
@@ -150,7 +151,8 @@ sudo make install || exit
unset CFLAGS unset CFLAGS
# ldconfig for shared libs # ldconfig for shared libs
echo "/usr/local/lib" | sudo tee /etc/ld.so.conf.d/ffmpeg.conf sudo mkdir /etc/ld.so.conf.d/
echo "/usr/local/lib" | sudo tee /etc/ld.so.conf.d/ffmpeg.conf || exit 1
sudo ldconfig sudo ldconfig
# build ffmpeg # build ffmpeg