target-gcc: Get rid of TARGET_GCC_FLAGS
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 27 Jul 2010 16:16:59 +0000 (18:16 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 27 Jul 2010 16:22:44 +0000 (18:22 +0200)
This variable is used only once, so let's just hardcode its value at
its call site.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/gcc/Makefile.in
toolchain/gcc/gcc-uclibc-4.x.mk

index 0dcd8035e3e323d26ba5694d5e706c83068cc372..4278bdbcfc39701149a3d57597403739fd71e91b 100644 (file)
@@ -50,11 +50,6 @@ EXTRA_GCC_CONFIG_OPTIONS+=--with-build-time-tools=$(STAGING_DIR)/$(REAL_GNU_TARG
 #EXTRA_GCC_CONFIG_OPTIONS+=--with-as=$(TARGET_CROSS)as
 endif
 
-TARGET_GCC_FLAGS= CFLAGS_FOR_TARGET="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)" \
-       CXXFLAGS_FOR_TARGET="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)" \
-       CFLAGS="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)" \
-       BOOT_CFLAGS="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)"
-
 ifeq ($(BR2_PACKAGE_GCC_TARGET),y)
 EXTRA_TARGET_GCC_CONFIG_OPTIONS:=
 
index 081e906c89e3bac073925a340e45b4d277fb23f6..cfbe6164d3a04b03fca5b201fd92dc363df823c4 100644 (file)
@@ -393,7 +393,10 @@ $(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR3)/.prepared
        (cd $(GCC_BUILD_DIR3); rm -rf config.cache; \
                $(TARGET_CONFIGURE_OPTS) \
                $(TARGET_CONFIGURE_ARGS) \
-               $(TARGET_GCC_FLAGS) \
+               CFLAGS_FOR_TARGET="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)" \
+               CXXFLAGS_FOR_TARGET="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)" \
+               CFLAGS="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)" \
+               BOOT_CFLAGS="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)" \
                $(GCC_SRC_DIR)/configure $(QUIET) \
                --prefix=/usr \
                --build=$(GNU_HOST_NAME) \