libbfd: prevent from incorrect assignment of $CFLAGS
authorJim Huang <jserv@0xlab.org>
Sun, 9 Dec 2012 15:47:29 +0000 (23:47 +0800)
committerJim Huang <jserv@0xlab.org>
Sun, 9 Dec 2012 16:18:57 +0000 (00:18 +0800)
commitcb3aee6ee66822b544ac679664d63a7b8e5d9a21
tree16cf9a82a511d9c278533ebf2ab95d2b5ad0457c
parent106603b925b7f20177c5b7613535d9d43ed35b7d
libbfd: prevent from incorrect assignment of $CFLAGS

For older versions of binutils, the automake script can not recognize the suffixing
environment variable $CFLAGS and complain as following:

       (cd libbfd-binutils-2.17 ; \
         .././../binutils/binutils-2.17/configure \
          --prefix=/usr/local --target= --host=x86_64-unknown-linux-gnu \
          --build=x86_64-unknown-linux-gnu --program-transform-name='s,y,y,' \
          --disable-shared \
          --enable-install-libbfd --with-included-gettext CFLAGS=" -m32") && \
        touch stmp-config-host-libbfd
configure: warning: CFLAGS= -m32: invalid host type
creating cache ./config.cache
configure: error: can only configure for one host and one target at a time

Change-Id: I075a37d4bfd9b5744ec9c5ffc73446cbbba220b8
Makefile.in