diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-07-25 10:32:38 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-07-25 10:32:38 +0000 |
commit | 5820306407040480272527ceba969ecbc14f35af (patch) | |
tree | 3a51492bf92cbe6b90d66ace9969a33a4aaf8c68 /rules.mk | |
parent | 1266eb49eede1f1bb1f5bab230b0a1f9ee22408a (diff) | |
download | openwrt-5820306407040480272527ceba969ecbc14f35af.tar.gz openwrt-5820306407040480272527ceba969ecbc14f35af.tar.bz2 openwrt-5820306407040480272527ceba969ecbc14f35af.zip |
only export GCC_HONOUR_COPTS for the built-in toolchain, fixes missing-fhonour-copts warnings with external toolchains
SVN-Revision: 27771
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -124,6 +124,7 @@ LIBRPC_DEPENDS=+USE_UCLIBC:librpc ifndef DUMP ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) -include $(TOOLCHAIN_DIR)/info.mk + export GCC_HONOUR_COPTS:=0 TARGET_CROSS:=$(if $(TARGET_CROSS),$(TARGET_CROSS),$(OPTIMIZE_FOR_CPU)-openwrt-linux$(if $(TARGET_SUFFIX),-$(TARGET_SUFFIX))-) TARGET_CFLAGS+= -fhonour-copts TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/usr/include -I$(TOOLCHAIN_DIR)/include @@ -160,7 +161,6 @@ endif export PATH:=$(TARGET_PATH) export STAGING_DIR -export GCC_HONOUR_COPTS:=0 export SH_FUNC:=. $(INCLUDE_DIR)/shell.sh; PKG_CONFIG:=$(STAGING_DIR_HOST)/bin/pkg-config |