aboutsummaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-11-24 12:52:13 -0800
committerDan Albert <danalbert@google.com>2015-11-24 12:52:13 -0800
commitdc10622f7094e55d726064241842dc58d9011a94 (patch)
treefcb8079b36c153b6ddb422278212589d3e317aaf /sources
parent4bd914506e1d7f065cc4f75448c64854211b6fc9 (diff)
downloadndk-dc10622f7094e55d726064241842dc58d9011a94.tar.gz
Fix the Mac build from the binutils update.
Apparently the Darwin headers now warn on uses of sbrk and some other things because they've been marked as deprecated, but binutils uses them, so we need to disable -Werror. Change-Id: I8999fc46bfde307c1782b3936432932cca306d2e
Diffstat (limited to 'sources')
-rwxr-xr-xsources/host-tools/ndk-stack/build-ndk-stack.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/host-tools/ndk-stack/build-ndk-stack.sh b/sources/host-tools/ndk-stack/build-ndk-stack.sh
index caf7f362b..489836407 100755
--- a/sources/host-tools/ndk-stack/build-ndk-stack.sh
+++ b/sources/host-tools/ndk-stack/build-ndk-stack.sh
@@ -81,7 +81,8 @@ if [ "$HOST_OS" != "darwin" -a "$DARWIN" != "yes" ]; then
LDFLAGS=$LDFLAGS" -Wl,-gc-sections"
else
# In darwin libbfd has to be built with some *linux* target or it won't understand ELF
- EXTRA_CONFIG="-target=arm-linux-androideabi"
+ # Disable -Werror because binutils uses deprecated functions (e.g. sbrk).
+ EXTRA_CONFIG="-target=arm-linux-androideabi --disable-werror"
fi
BINUTILS_BUILD_DIR=$BUILD_DIR/binutils