Changeset 30556 for trunk


Ignore:
Timestamp:
2012-02-15T20:19:12+01:00 (5 years ago)
Author:
nbd
Message:

build: add -Wno-error=unused-but-set-variable to cflags for gcc 4.6 and newer to avoid stupid -Werror related package breakage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rules.mk

    r29951 r30556  
    129129    export GCC_HONOUR_COPTS:=0 
    130130    TARGET_CROSS:=$(if $(TARGET_CROSS),$(TARGET_CROSS),$(OPTIMIZE_FOR_CPU)-openwrt-linux$(if $(TARGET_SUFFIX),-$(TARGET_SUFFIX))-) 
    131     TARGET_CFLAGS+= -fhonour-copts 
     131    TARGET_CFLAGS+= -fhonour-copts $(if $(CONFIG_GCC_VERSION_4_4)$(CONFIG_GCC_VERSION_4_5),,-Wno-error=unused-but-set-variable) 
    132132    TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/usr/include -I$(TOOLCHAIN_DIR)/include 
    133133    TARGET_LDFLAGS+= -L$(TOOLCHAIN_DIR)/usr/lib -L$(TOOLCHAIN_DIR)/lib 
Note: See TracChangeset for help on using the changeset viewer.