From f88bac98b457edacfcf0d23db497d724832ac1e8 Mon Sep 17 00:00:00 2001 From: Itms Date: Mon, 9 Dec 2024 10:30:13 +0100 Subject: [PATCH] Fix SpiderMonkey build on recent macOS Fixes #6905 Fixes #6915 --- libraries/source/spidermonkey/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libraries/source/spidermonkey/build.sh b/libraries/source/spidermonkey/build.sh index 44abe59680..f35036c7a2 100755 --- a/libraries/source/spidermonkey/build.sh +++ b/libraries/source/spidermonkey/build.sh @@ -29,6 +29,15 @@ tar xfJ "${FOLDER}.tar.xz" # patch ( cd "${FOLDER}" + + # Fix build on recent macOS versions. + # https://bugzilla.mozilla.org/show_bug.cgi?id=1844694 + # The --enable-bootstrap fix mentioned on the ticket does not fix the issue. Instead, + # use Homebrew's workaround. + if [ "${OS}" = "Darwin" ]; then + sed -i '' 's/\["-Wl,--version"]/["-Wl,-ld_classic,--version"]/g' build/moz.configure/toolchain.configure + fi + # shellcheck disable=SC1091 . ../patches/patch.sh )