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.
This commit is contained in:
Tom Fairfield 2021-05-05 11:27:59 -07:00
parent 0bbb21ad98
commit f55df9e129
1 changed files with 1 additions and 1 deletions

View File

@ -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