xbps-src: set_build_options: read conf file for XBPS_PKG_OPTIONS.

This makes XBPS_PKG_OPTIONS* settings work via build.sh. Thanks chris2.
This commit is contained in:
Juan RP 2015-03-23 17:57:23 +01:00
parent 23a907eba6
commit 451411ad21

View file

@ -95,6 +95,8 @@ set_build_options() {
return 0
fi
. $XBPS_CONFIG_FILE 2>/dev/null
for f in ${build_options}; do
_pkgname=${pkgname//\-/\_}
eval pkgopts="\$XBPS_PKG_OPTIONS_${_pkgname}"