From 1e0f34da9b40b62708f803dfaccf15f494a750dc Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 28 May 2015 21:35:55 +0200 Subject: [PATCH] Force pkg-config to look into $PREFIX first --- src/deforaos-package.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/deforaos-package.sh b/src/deforaos-package.sh index 612b747..ab9e652 100755 --- a/src/deforaos-package.sh +++ b/src/deforaos-package.sh @@ -322,7 +322,8 @@ _package_debian() #build the package _info "Building the package..." - $DEBUG $DPKG_BUILDPACKAGE + #XXX ugly workaround + PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig" $DEBUG $DPKG_BUILDPACKAGE #XXX ignore errors if the command is not installed if [ $? -eq 127 ]; then _warning "Could not build the package"