Fixed to allow CFLAGS to accumulate for building host libbfd
Andrew Hsieh [Wed, 9 May 2012 13:55:55 +0000 (21:55 +0800)]
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

Makefile.in

index 42d4a9a..2bb1803 100644 (file)
@@ -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}) && \