summaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-02-15 19:19:12 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-02-15 19:19:12 +0000
commit27bb12af0f6efb44537e87e05d1309405d70f32b (patch)
tree89b759b86b4988746eafe42230438768eccf4ea3 /rules.mk
parent8b8d9a83361130c5b33bdbb64413c898d62956e7 (diff)
downloadopenwrt-27bb12af0f6efb44537e87e05d1309405d70f32b.tar.gz
openwrt-27bb12af0f6efb44537e87e05d1309405d70f32b.tar.bz2
openwrt-27bb12af0f6efb44537e87e05d1309405d70f32b.zip
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
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.mk b/rules.mk
index c6e571115c..474c0e2461 100644
--- a/rules.mk
+++ b/rules.mk
@@ -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)