xbps-src: only set --{build,host} if build_style is unset or gnu-configure.

This commit is contained in:
Juan RP 2014-11-12 09:16:54 +01:00
parent 734f0eac23
commit 9963231e31
1 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,8 @@
if [ -z "$build_style" -o "$build_style" = "gnu-configure" ]; then
export configure_args="--prefix=/usr --sysconfdir=/etc --infodir=/usr/share/info --mandir=/usr/share/man --localstatedir=/var ${configure_args}"
. ${XBPS_COMMONDIR}/build-profiles/${XBPS_MACHINE}.sh
export configure_args+=" --host=$XBPS_TRIPLET --build=$XBPS_TRIPLET"
fi
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
@ -14,8 +16,6 @@ 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