diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-02-15 19:19:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-02-15 19:19:12 +0000 |
commit | 27bb12af0f6efb44537e87e05d1309405d70f32b (patch) | |
tree | 89b759b86b4988746eafe42230438768eccf4ea3 | |
parent | 8b8d9a83361130c5b33bdbb64413c898d62956e7 (diff) | |
download | mtk-20170518-27bb12af0f6efb44537e87e05d1309405d70f32b.zip mtk-20170518-27bb12af0f6efb44537e87e05d1309405d70f32b.tar.gz mtk-20170518-27bb12af0f6efb44537e87e05d1309405d70f32b.tar.bz2 |
build: add -Wno-error=unused-but-set-variable to cflags for gcc 4.6 and newer to avoid stupid -Werror related package breakage
SVN-Revision: 30556
-rw-r--r-- | rules.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -128,7 +128,7 @@ ifndef DUMP -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_CFLAGS+= -fhonour-copts $(if $(CONFIG_GCC_VERSION_4_4)$(CONFIG_GCC_VERSION_4_5),,-Wno-error=unused-but-set-variable) TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/usr/include -I$(TOOLCHAIN_DIR)/include TARGET_LDFLAGS+= -L$(TOOLCHAIN_DIR)/usr/lib -L$(TOOLCHAIN_DIR)/lib TARGET_PATH:=$(TOOLCHAIN_DIR)/bin:$(TARGET_PATH) |