Deps: Set PKG_CONFIG_PATH when building

This commit is contained in:
Stenzek 2025-12-05 17:52:48 +10:00
parent 1d28a4b385
commit 27802bf450
No known key found for this signature in database
1 changed files with 7 additions and 0 deletions

View File

@ -108,6 +108,13 @@ if [ "$ONLY_DOWNLOAD" == true ]; then
exit 0
fi
# Prefer local deps for pkg-config search path.
if [[ -z "$PKG_CONFIG_PATH" ]]; then
export PKG_CONFIG_PATH="$INSTALLDIR/lib/pkgconfig:$INSTALLDIR/lib64/pkgconfig"
else
export PKG_CONFIG_PATH="$INSTALLDIR/lib/pkgconfig:$INSTALLDIR/lib64/pkgconfig:${PKG_CONFIG_PATH}"
fi
# Build zlib first because of the things that depend on it.
echo "Building zlib-ng..."
rm -fr "zlib-ng-$ZLIBNG"