From 1f0d4287ad9995bc8073709ffddf77c4b541ea7f Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 4 Jul 2024 11:24:09 -0700 Subject: [PATCH] Fix build on modern versions of macOS+Homebrew ;P. --- env/setup-mac.sh | 3 ++- env/uname-Darwin.mk | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/env/setup-mac.sh b/env/setup-mac.sh index 2afbe4a5d..4f48753db 100755 --- a/env/setup-mac.sh +++ b/env/setup-mac.sh @@ -2,6 +2,7 @@ set -e which brew &>/dev/null || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" +# XXX: duplicate linux setup as much as possible (at least ninja) brew install \ fakeroot \ rpm2cpio zstd \ @@ -10,7 +11,7 @@ brew install \ python-packaging \ groff \ autoconf autoconf-archive automake \ - libtool meson \ + libtool meson pkg-config \ capnp rustup-init \ rustup-init -y --no-modify-path --no-update-default-toolchain diff --git a/env/uname-Darwin.mk b/env/uname-Darwin.mk index 459ab92b9..2e95ab22c 100644 --- a/env/uname-Darwin.mk +++ b/env/uname-Darwin.mk @@ -15,7 +15,7 @@ endif prebuilt := darwin-x86_64 -export PATH := /usr/local/opt/gettext/bin:$(PATH) - +# XXX: consider detecting where homebrew is installed export PATH := $(PATH):/usr/local/opt/binutils/bin +export PATH := $(PATH):/opt/homebrew/opt/binutils/bin objcopy = objcopy