From ff3fa766ae6d0e495202cdb11c3b686374d49886 Mon Sep 17 00:00:00 2001 From: Timothy Hofland Date: Sun, 15 Mar 2026 21:25:59 +0100 Subject: [PATCH] build: pass PKG_CONFIG_LIBDIR to make for cross-compile pkg-config checks --- scripts/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 488d39b..58d7675 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -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 \