From f55df9e129340179c7acfce7ee5a71dde685c659 Mon Sep 17 00:00:00 2001 From: Tom Fairfield Date: Wed, 5 May 2021 11:27:59 -0700 Subject: [PATCH] fixes bug in build-toolchain when running on Power Mac Running on a Power Mac + Tiger system, `uname -m` returns "Power Mac". Unless the result is quoted, it will get improperly split and the if conditional breaks. --- build-toolchain.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-toolchain.bash b/build-toolchain.bash index 86ba10fecb..06e2f05a89 100755 --- a/build-toolchain.bash +++ b/build-toolchain.bash @@ -204,7 +204,7 @@ if [ $SKIP_THIRDPARTY != true ]; then if [ `uname` = Darwin ]; then # present-day Mac users are likely to install dependencies # via the homebrew package manager - if [ `uname -m` = arm64 ]; then + if [ "`uname -m`" = arm64 ]; then export CPPFLAGS="-I/opt/homebrew/include" export LDFLAGS="-L/opt/homebrew/lib" else