xbps-src: set defaults to XBPS_C{,XX}FLAGS for the bootstrap target.

This commit is contained in:
Juan RP 2014-12-23 09:24:17 +01:00
parent 30559bb98e
commit 8252c1a719
1 changed files with 3 additions and 0 deletions

View File

@ -332,6 +332,9 @@ setup_pkg() {
if [ -s ${XBPS_COMMONDIR}/build-profiles/${XBPS_MACHINE}.sh ]; then
. ${XBPS_COMMONDIR}/build-profiles/${XBPS_MACHINE}.sh
fi
else
XBPS_CFLAGS="-O2 -pipe"
XBPS_CXXFLAGS="$XBPS_CFLAGS"
fi
export CFLAGS="$XBPS_CFLAGS $XBPS_CROSS_CFLAGS $CFLAGS $dbgflags"
export CXXFLAGS="$XBPS_CXXFLAGS $XBPS_CROSS_CXXFLAGS $CXXFLAGS $dbgflags"