From 7472b59bb415a58e5f9d6d38dddc52420104e402 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 1 Aug 2013 06:36:16 +0000 Subject: [PATCH] abuild: always set CBUILD and CTARGET if unset --- abuild.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/abuild.in b/abuild.in index ad1adc2..28699aa 100755 --- a/abuild.in +++ b/abuild.in @@ -158,8 +158,6 @@ default_sanitycheck() { # check if CARCH, CBUILD, CHOST and CTARGET is set [ -z "$CHOST" ] && die "Please set CHOST in /etc/abuild.conf" - [ -z "$CBUILD" ] && CBUILD="$CHOST" - [ -z "$CTARGET" ] && CTARGET="$CHOST" if [ -z "$CARCH" ]; then die "Please fix CHOST, or set CARCH in abuild.conf" @@ -1911,6 +1909,9 @@ if [ -z "$CLIBC" ]; then esac fi +[ -z "$CBUILD" ] && CBUILD="$CHOST" +[ -z "$CTARGET" ] && CTARGET="$CHOST" + cd "$startdir" || die . "$APKBUILD"