aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2020-06-01 09:30:24 -0600
committerAriadne Conill <ariadne@dereferenced.org>2020-06-01 09:30:24 -0600
commit30ddf1b3c46442163af3fb6223f39b24e6651bc6 (patch)
tree5c038a805916dfd97d01ef55a87bc51711de7acd /main
parentabb0a3e291d2783bc0a7647d2259fe6f8d1bedb6 (diff)
downloadaports-30ddf1b3c46442163af3fb6223f39b24e6651bc6.tar.gz
aports-30ddf1b3c46442163af3fb6223f39b24e6651bc6.tar.bz2
aports-30ddf1b3c46442163af3fb6223f39b24e6651bc6.tar.xz
main/gcc: fix up gcc-gnat-bootstrap malarkey once and for all
Diffstat (limited to 'main')
-rw-r--r--main/gcc/APKBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD
index 6db59f088f..afffad628f 100644
--- a/main/gcc/APKBUILD
+++ b/main/gcc/APKBUILD
@@ -14,7 +14,7 @@ license="GPL-2.0-or-later LGPL-2.1-or-later"
_gccrel=$pkgver-r$pkgrel
depends="binutils$_target isl"
makedepends_build="gcc$_cross g++$_cross paxmark bison flex texinfo gawk zip gmp-dev mpfr-dev mpc1-dev zlib-dev"
-makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev !gettext-dev gcc-gnat-bootstrap"
+makedepends_host="linux-headers gmp-dev mpfr-dev mpc1-dev isl-dev zlib-dev !gettext-dev"
subpackages=" "
[ "$CHOST" = "$CTARGET" ] && subpackages="gcc-doc$_target"
replaces="libstdc++ binutils"
@@ -144,7 +144,8 @@ fi
if $LANG_ADA; then
subpackages="$subpackages libgnat::$CTARGET_ARCH gcc-gnat$_target:gnat"
_languages="$_languages,ada"
- makedepends_build="$makedepends_build gcc-gnat gcc-gnat$_cross"
+ [ "$CBUILD" = "$CTARGET" ] && makedepends_build="$makedepends_build gcc-gnat-bootstrap"
+ [ "$CBUILD" != "$CTARGET" ] && makedepends_build="$makedepends_build gcc-gnat gcc-gnat$_cross"
fi
makedepends="$makedepends_build $makedepends_host"