summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2023-05-31 11:19:51 +0200
committerFabian Groffen <grobian@gentoo.org>2023-05-31 11:19:51 +0200
commit77f0802a3c4de947f1cd0603601fa3c8416b2149 (patch)
tree864d7a67fa1205d74329374707b856618964891c
parentscripts/dobootstrap: keep fallback mirrors (diff)
downloadprefix-77f0802a3c4de947f1cd0603601fa3c8416b2149.tar.gz
prefix-77f0802a3c4de947f1cd0603601fa3c8416b2149.tar.bz2
prefix-77f0802a3c4de947f1cd0603601fa3c8416b2149.zip
scripts/dobootstrap: force bitwidth to supported configs
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-xscripts/auto-bootstraps/dobootstrap11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/auto-bootstraps/dobootstrap b/scripts/auto-bootstraps/dobootstrap
index de1a371627..8b8eb48bed 100755
--- a/scripts/auto-bootstraps/dobootstrap
+++ b/scripts/auto-bootstraps/dobootstrap
@@ -38,6 +38,17 @@ do_prepare() {
local chost=$(${BASH} ${bootstrap} chost.guess x)
case ${chost} in
+ powerpc*-*darwin*)
+ # ppc64-darwin never really worked for unknown reasons
+ bitw=32
+ ;;
+ *-solaris*|*-darwin*)
+ # force 64-bits for these targets, 32-bits is no longer
+ # supported
+ bitw=64
+ ;;
+ esac
+ case ${chost} in
*86-*)
if [[ ${bitw} == 64 ]] ; then
chost=x86_64-${chost#*-}