summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authorsjmulder <sjmulder@pkgsrc.org>2020-07-21 15:53:10 +0000
committersjmulder <sjmulder@pkgsrc.org>2020-07-21 15:53:10 +0000
commitbe4163a1d95493d51813bb9ec779495da8974a4f (patch)
treee5002956baeccd3fd33119a0aaea0c57c5ec74e5 /bootstrap/bootstrap
parent79a52430717031bb982c19f6ade34976cae3528b (diff)
downloadpkgsrc-be4163a1d95493d51813bb9ec779495da8974a4f.tar.gz
bootstrap: Fix machine_arch detection on Apple Sillicon
machine_arch was empty on Apple Sillicon. We could also use `uname -m` but that returns arm64 which is not accepted by mk/gnu-config/config.sub.
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-xbootstrap/bootstrap5
1 files changed, 4 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 2de4beb2381..682899f6be5 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.288 2020/07/15 10:32:12 jperkin Exp $
+# $NetBSD: bootstrap,v 1.289 2020/07/21 15:53:10 sjmulder Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -219,6 +219,9 @@ get_machine_arch_aix()
get_machine_arch_darwin()
{
case `uname -p` in
+ arm)
+ echo "aarch64"
+ ;;
i386)
# Returns "i386" or "x86_64" depending on CPU
echo `uname -m`