diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-02-16 16:07:27 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-02-16 16:07:27 +0200 |
commit | ab748f4eda519f7f824c2c8f0b1d331951e37180 (patch) | |
tree | 7888554ee2c2d8c917eb60e61103016e3cecd370 /abuild.in | |
parent | 6fa4c26226fac8b8ddb407a74ce8b95021826dd5 (diff) | |
download | abuild-ab748f4eda519f7f824c2c8f0b1d331951e37180.tar.gz abuild-ab748f4eda519f7f824c2c8f0b1d331951e37180.tar.bz2 abuild-ab748f4eda519f7f824c2c8f0b1d331951e37180.tar.xz abuild-ab748f4eda519f7f824c2c8f0b1d331951e37180.zip |
abuild: make build-base target specific
Diffstat (limited to 'abuild.in')
-rw-r--r-- | abuild.in | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |