aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-05-09 21:55:55 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2012-05-09 21:55:55 +0800
commit525adcedbdb51a57a31a4927bf6129df7e8efead (patch)
tree4074bcd3d4946ddc64e53460499db600aa1081ce
parent5e9fdc9d618c03577e4ffe226c097f72e62d3786 (diff)
downloadbuild-525adcedbdb51a57a31a4927bf6129df7e8efead.tar.gz
Fixed to allow CFLAGS to accumulate for building host libbfd
In this case CFLAGS was set to "-Wno-error" before building host libbfd, and it's followed by -Werror to invoke CC. There are a few warnings treated as error but -Wno-error suppress them. Resetting CFLAGS to -m32 breaks the build Changed it to accumulate CFLAGS rather than resetting CFLAGS Change-Id: I118a848c27f91407b75beabea10c35883ca16e5a
-rw-r--r--Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 42d4a9a..2bb1803 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -362,7 +362,7 @@ LIBBFD_CONFIG_ARGS=--prefix=$(prefix) \
--target=${target_alias} --host=${host} --build=${build} \
$(baseargs) --disable-shared \
--enable-install-libbfd --with-included-gettext \
- CFLAGS=-m32
+ CFLAGS="$(CFLAGS) -m32"
stmp-config-host-libbfd: config.status
([ -d libbfd-${BINUTILS_VERSION} ] || \
mkdir libbfd-${BINUTILS_VERSION}) && \