summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-02-24 10:16:55 +0200
committerTimo Teräs <timo.teras@iki.fi>2017-02-24 10:16:55 +0200
commit32dbf36f0e4775bd39fadf27ca978577a739a50a (patch)
treec608a9b299a7ca06bce8d18fd0918b8e36a9f4e1 /abuild.in
parent5a8993e161f6744fe8a45126e77905a75fea0601 (diff)
downloadabuild-32dbf36f0e4775bd39fadf27ca978577a739a50a.tar.gz
abuild-32dbf36f0e4775bd39fadf27ca978577a739a50a.tar.bz2
abuild-32dbf36f0e4775bd39fadf27ca978577a739a50a.tar.xz
abuild-32dbf36f0e4775bd39fadf27ca978577a739a50a.zip
abuild: use BOOTSTRAP to determine if build-base is needed
Just checking the build, host and target triplet is not enough due to various different combinations used in the early bootstrap. So use detect specifical bootstrap setting.
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in18
1 files changed, 9 insertions, 9 deletions
diff --git a/abuild.in b/abuild.in
index 11a069c..b9ab5d6 100644
--- a/abuild.in
+++ b/abuild.in
@@ -1855,19 +1855,19 @@ calcdeps() {
# build and install dependencies
builddeps() {
- local pkg= i= missing=
+ local pkg= i= missing= BUILD_BASE=
local installed_hostdeps= installed_builddeps=
[ -n "$nodeps" ] && return 0
msg "Analyzing dependencies..."
- local BUILD_BASE=""
- if cross_creating; then
- options_has toolchain || BUILD_BASE="build-base-$CTARGET_ARCH"
- elif cross_compiling; then
- BUILD_BASE="build-base-$CTARGET_ARCH"
- else
- BUILD_BASE="build-base"
- fi
+ case "$BOOTSTRAP" in
+ no*) BUILD_BASE="";;
+ *) if cross_creating || cross_compiling; then
+ BUILD_BASE="build-base-$CTARGET_ARCH"
+ else
+ BUILD_BASE="build-base"
+ fi
+ esac
calcdeps "$BUILD_BASE"
installed_builddeps=$($APK info --installed $builddeps)