Make (un)set_build_vars() work inside of the chroot.

This has the effect to really pass the XBPS_C(XX)FLAGS values from
xbps.conf to the packages built there.

--HG--
extra : convert_revision : 87ea9f6a755ba3f60a095391d2b0069ab22cb742
This commit is contained in:
Juan RP 2009-03-03 19:06:27 +01:00
parent 8c296e19ae
commit 5c8d0c01b3
5 changed files with 27 additions and 37 deletions

View file

@ -122,10 +122,8 @@ make_install()
[ -z "$make_cmd" ] && make_cmd=/usr/bin/make
if [ -z "$in_chroot" ]; then
. $XBPS_SHUTILSDIR/buildvars_funcs.sh
set_build_vars
fi
. $XBPS_SHUTILSDIR/buildvars_funcs.sh
set_build_vars
#
# Install package via make.
@ -150,7 +148,5 @@ make_install()
done
# Unset build vars.
if [ -z "$in_chroot" ]; then
unset_build_vars
fi
unset_build_vars
}