diff options
-rwxr-xr-x | abuild.in | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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" |