Merge pull request #3024 from pullmoll/buildflags

common.sh: set BUILD_XXXFLAGS as autoconf defaults
This commit is contained in:
Juan RP 2015-11-21 07:45:17 +01:00
commit 9a949ad325
1 changed files with 4 additions and 0 deletions

View File

@ -391,9 +391,13 @@ setup_pkg() {
export CPP_FOR_BUILD="cpp" export CPP_FOR_BUILD="cpp"
export LD_FOR_BUILD="ld" export LD_FOR_BUILD="ld"
export CFLAGS_FOR_BUILD="$XBPS_CFLAGS" export CFLAGS_FOR_BUILD="$XBPS_CFLAGS"
export BUILD_CFLAGS="$XBPS_CFLAGS"
export CXXFLAGS_FOR_BUILD="$XBPS_CXXFLAGS" export CXXFLAGS_FOR_BUILD="$XBPS_CXXFLAGS"
export BUILD_CXXFLAGS="$XBPS_CXXFLAGS"
export CPPFLAGS_FOR_BUILD="$XBPS_CPPFLAGS" export CPPFLAGS_FOR_BUILD="$XBPS_CPPFLAGS"
export BUILD_CPPFLAGS="$XBPS_CPPFLAGS"
export LDFLAGS_FOR_BUILD="$XBPS_LDFLAGS" export LDFLAGS_FOR_BUILD="$XBPS_LDFLAGS"
export BUILD_LDFLAGS="$XBPS_LDFLAGS"
if [ -n "$cross" ]; then if [ -n "$cross" ]; then
export CC="${XBPS_CROSS_TRIPLET}-gcc" export CC="${XBPS_CROSS_TRIPLET}-gcc"