xbps-src: introduce XBPS_TRIPLET and set it in the build-profiles.

This is for cases where host does not match build environment (x86_64 building for x86).
So we just force build/host triplet in native builds.
This commit is contained in:
Juan RP 2014-11-11 22:24:40 +01:00
parent ab9b7971f0
commit 9a168e4463
10 changed files with 10 additions and 3 deletions

View file

@ -14,6 +14,8 @@ fi
# Cross compilation vars
if [ -z "$CROSS_BUILD" ]; then
. ${XBPS_COMMONDIR}/build-profiles/${XBPS_MACHINE}.sh
export configure_args+=" --host=$XBPS_TRIPLET --build=$XBPS_TRIPLET"
return 0
fi