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 | 9c7fb0200c8a9306c7d40c120a90eccf37fc3f8a (patch) | |
tree | 04cf7caf0131afbeff7cd44382056d6662cfada5 | |
parent | 92b44035cbccf853dafd91c07511ba51a0eef8a2 (diff) | |
download | upstream-9c7fb0200c8a9306c7d40c120a90eccf37fc3f8a.tar.gz upstream-9c7fb0200c8a9306c7d40c120a90eccf37fc3f8a.tar.bz2 upstream-9c7fb0200c8a9306c7d40c120a90eccf37fc3f8a.zip |
build: add -Wno-error=unused-but-set-variable to cflags for gcc 4.6 and newer to avoid stupid -Werror related package breakage
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30556 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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) |