Skip to content

Commit

Permalink
Toolchain: Fix building binutils on macOS with --enable-shared
Browse files Browse the repository at this point in the history
  • Loading branch information
Pagghiu authored and awesomekling committed Dec 28, 2019
1 parent ac0b8ca commit 68d721f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Toolchain/BuildIt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68d721f

Please sign in to comment.