diff --git a/common/xbps-src/shutils/common.sh b/common/xbps-src/shutils/common.sh index 87983e3bb2..ca6e28f108 100644 --- a/common/xbps-src/shutils/common.sh +++ b/common/xbps-src/shutils/common.sh @@ -331,7 +331,7 @@ setup_pkg() { dbgflags="-g" fi - if [ -z "$XBPS_CFLAGS" -a -z "$XBPS_CXXFLAGS" -a -z "$CHROOT_READY" ]; then + if [ -z "$XBPS_CFLAGS" -a -z "$XBPS_CXXFLAGS" -a -n "$CHROOT_READY" ]; then if [ -s ${XBPS_COMMONDIR}/build-profiles/${XBPS_MACHINE}.sh ]; then . ${XBPS_COMMONDIR}/build-profiles/${XBPS_MACHINE}.sh fi