From ab748f4eda519f7f824c2c8f0b1d331951e37180 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Thu, 16 Feb 2017 16:07:27 +0200 Subject: abuild: make build-base target specific --- abuild.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'abuild.in') diff --git a/abuild.in b/abuild.in index 9394ea4..31bb105 100644 --- a/abuild.in +++ b/abuild.in @@ -20,8 +20,6 @@ fi . "$datadir/functions.sh" # defaults -BUILD_BASE="build-base" - : ${FAKEROOT:="fakeroot"} : ${SUDO_APK:="abuild-apk"} : ${APK:="apk"} @@ -1857,6 +1855,10 @@ builddeps() { [ -n "$nodeps" ] && return 0 msg "Analyzing dependencies..." + local BUILD_BASE="" + if ! options_has toolchain; then + cross_compiling && BUILD_BASE="build-base-$CTARGET_ARCH" || BUILD_BASE="build-base" + fi calcdeps "$BUILD_BASE" installed_builddeps=$($APK info --installed $builddeps) -- cgit v1.2.3-60-g2f50