build: pass PKG_CONFIG_LIBDIR to make for cross-compile pkg-config checks

This commit is contained in:
Timothy Hofland
2026-03-15 21:25:59 +01:00
parent 93e7bd58b2
commit ff3fa766ae

View File

@ -198,13 +198,17 @@ exec env \
PKGCFG_EOF
chmod +x "$PKGCFG_WRAPPER"
# Ensure PKG_CONFIG_PATH is not set in our environment (avoid the OF Makefile bug)
# Ensure PKG_CONFIG_PATH is not set in our environment (avoid the OF Makefile
# "export $(PKG_CONFIG_PATH)" bug which treats its value as a variable name).
unset PKG_CONFIG_PATH
unset PKG_CONFIG_LIBDIR
ARM64_PKG_CONFIG_PATH="/usr/lib/aarch64-linux-gnu/pkgconfig:/usr/share/pkgconfig"
make clean 2>/dev/null || true
make -j1 \
PKG_CONFIG="$PKGCFG_WRAPPER" \
PKG_CONFIG_LIBDIR="$ARM64_PKG_CONFIG_PATH" \
GST_VERSION=1.0 \
PLATFORM_ARCH=aarch64 \
CROSS_COMPILING=1 \