diff options
author | sjmulder <sjmulder@pkgsrc.org> | 2020-07-21 15:53:10 +0000 |
---|---|---|
committer | sjmulder <sjmulder@pkgsrc.org> | 2020-07-21 15:53:10 +0000 |
commit | be4163a1d95493d51813bb9ec779495da8974a4f (patch) | |
tree | e5002956baeccd3fd33119a0aaea0c57c5ec74e5 /bootstrap/bootstrap | |
parent | 79a52430717031bb982c19f6ade34976cae3528b (diff) | |
download | pkgsrc-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-x | bootstrap/bootstrap | 5 |
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` |