diff --git a/scripts/build.sh b/scripts/build.sh index 7fe935b..ab6287b 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -421,6 +421,7 @@ sudo ldconfig cd "$FFMPEG_DIR/" || exit update_git export PKG_CONFIG_PATH+="/usr/local/lib/pkgconfig/" +export LD_PRELOAD="/usr/local/lib:$LD_PRELOAD" make clean ./configure --enable-libsvtav1 \ --enable-libdav1d --enable-libopus \ diff --git a/scripts/recc_encode.sh b/scripts/recc_encode.sh index 1220736..179e02d 100755 --- a/scripts/recc_encode.sh +++ b/scripts/recc_encode.sh @@ -4,7 +4,7 @@ # do not take this as a holy grail. # global path variables -SCRIPT_PATH="$(readlink "$(which "$0")")" +SCRIPT_PATH="$(readlink -f "${BASH_SOURCE[0]}")" SCRIPT_DIR="$(dirname "$SCRIPT_PATH")" BUILDER_DIR="$(dirname "$SCRIPT_DIR")"