summaryrefslogtreecommitdiff
path: root/Toolchain
diff options
context:
space:
mode:
authorStefano Cristiano <stefanocristiano82@gmail.com>2019-12-28 17:53:14 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-28 21:08:04 +0100
commit68d721f973ab560ab9e2d3928d11ce6496774248 (patch)
treed7acc820b161e5a4a5e0ea759d8e2e0ddb4a8471 /Toolchain
parentac0b8caa424edfd5f31d8e13ceb96bd359d27a40 (diff)
downloadserenity-68d721f973ab560ab9e2d3928d11ce6496774248.zip
Toolchain: Fix building binutils on macOS with --enable-shared
Diffstat (limited to 'Toolchain')
-rwxr-xr-xToolchain/BuildIt.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/Toolchain/BuildIt.sh b/Toolchain/BuildIt.sh
index 2c252a379a..46177fc020 100755
--- a/Toolchain/BuildIt.sh
+++ b/Toolchain/BuildIt.sh
@@ -102,6 +102,15 @@ pushd "$DIR/Build/"
--with-sysroot="$SYSROOT" \
--enable-shared \
--disable-nls || exit 1
+ if [ "$(uname)" = "Darwin" ]; then
+ # under macOS generated makefiles are not resolving the "intl"
+ # dependency properly to allow linking its own copy of
+ # libintl when building with --enable-shared.
+ make -j "$MAKEJOBS" || true
+ pushd intl
+ make all-yes
+ popd
+ fi
make -j "$MAKEJOBS" || exit 1
make install || exit 1
popd