inject PATH for cargo builds

This commit is contained in:
2025-08-08 16:43:12 -05:00
parent 02373d3f37
commit 0d71fb86c9

View File

@@ -11,7 +11,7 @@ set_compile_opts() {
export LDFLAGS C_FLAGS CXX_FLAGS CPP_FLAGS \ export LDFLAGS C_FLAGS CXX_FLAGS CPP_FLAGS \
CONFIGURE_FLAGS MESON_FLAGS \ CONFIGURE_FLAGS MESON_FLAGS \
RUSTFLAGS CMAKE_FLAGS \ RUSTFLAGS CMAKE_FLAGS \
FFMPEG_EXTRA_FLAGS FFMPEG_EXTRA_FLAGS PATH
# set job count for all builds # set job count for all builds
JOBS="$(nproc)" JOBS="$(nproc)"
@@ -335,7 +335,7 @@ build_hdr10plus_tool() {
# build libhdr10plus # build libhdr10plus
cd hdr10plus || return 1 cd hdr10plus || return 1
cargo cbuild "${CARGO_FLAGS[@]}" || return 1 cargo cbuild "${CARGO_FLAGS[@]}" || return 1
${SUDO_CARGO} bash -lc "cargo cinstall ${CARGO_CINSTALL_FLAGS[*]}" || return 1 ${SUDO_CARGO} bash -lc "PATH=${PATH} cargo cinstall ${CARGO_CINSTALL_FLAGS[*]}" || return 1
} }
build_dovi_tool() { build_dovi_tool() {
cargo build "${CARGO_FLAGS[@]}" || return 1 cargo build "${CARGO_FLAGS[@]}" || return 1
@@ -346,7 +346,7 @@ build_dovi_tool() {
# build libdovi # build libdovi
cd dolby_vision || return 1 cd dolby_vision || return 1
cargo cbuild "${CARGO_FLAGS[@]}" || return 1 cargo cbuild "${CARGO_FLAGS[@]}" || return 1
${SUDO_CARGO} bash -lc "cargo cinstall ${CARGO_CINSTALL_FLAGS[*]}" || return 1 ${SUDO_CARGO} bash -lc "PATH=${PATH} cargo cinstall ${CARGO_CINSTALL_FLAGS[*]}" || return 1
} }
build_librav1e() { build_librav1e() {
cargo build "${CARGO_FLAGS[@]}" || return 1 cargo build "${CARGO_FLAGS[@]}" || return 1
@@ -356,7 +356,7 @@ build_librav1e() {
# build librav1e # build librav1e
cargo cbuild "${CARGO_FLAGS[@]}" || return 1 cargo cbuild "${CARGO_FLAGS[@]}" || return 1
${SUDO_CARGO} bash -lc "cargo cinstall ${CARGO_CINSTALL_FLAGS[*]}" || return 1 ${SUDO_CARGO} bash -lc "PATH=${PATH} cargo cinstall ${CARGO_CINSTALL_FLAGS[*]}" || return 1
# HACK PATCH # HACK PATCH
# remove '-lgcc_s' from pkgconfig for static builds # remove '-lgcc_s' from pkgconfig for static builds