Fix SpiderMonkey build on recent macOS

Fixes #6905
Fixes #6915
This commit is contained in:
Itms
2024-12-09 10:30:13 +01:00
parent 682de9f289
commit f88bac98b4
+9
View File
@@ -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
)