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:
@@ -78,10 +78,8 @@ configure_src_phase()
|
||||
|
||||
cd $wrksrc || exit 1
|
||||
|
||||
if [ -z "$in_chroot" ]; then
|
||||
. $XBPS_SHUTILSDIR/buildvars_funcs.sh
|
||||
set_build_vars
|
||||
fi
|
||||
. $XBPS_SHUTILSDIR/buildvars_funcs.sh
|
||||
set_build_vars
|
||||
|
||||
#
|
||||
# Packages using GNU autoconf
|
||||
@@ -131,10 +129,6 @@ configure_src_phase()
|
||||
|
||||
# unset cross compiler vars.
|
||||
[ -n "$cross_compiler" ] && cross_compile_unsetvars
|
||||
|
||||
if [ -z "$in_chroot" ]; then
|
||||
unset_build_vars
|
||||
fi
|
||||
|
||||
unset_build_vars
|
||||
touch -f $XBPS_CONFIGURE_DONE
|
||||
}
|
||||
|
Reference in New Issue
Block a user