build: Fix behavior when ALLOW_HOST_PACKAGES unset

This commit is contained in:
Hennadii Stepanov 2020-02-01 13:32:32 +02:00
parent f05c1ac444
commit 0e519fe284
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -59,7 +59,7 @@ PKG_CONFIG="`which pkg-config` --static"
# avoid ruining the cache. Sigh.
export PKG_CONFIG_PATH=$depends_prefix/share/pkgconfig:$depends_prefix/lib/pkgconfig
if test -z "@allow_host_packages@"; then
export PKGCONFIG_LIBDIR=
export PKG_CONFIG_LIBDIR=$depends_prefix/lib/pkgconfig
fi
CPPFLAGS="-I$depends_prefix/include/ $CPPFLAGS"