opkg: work around the same broken array overrun check in gcc 4.4 as in gcc 4.3
authorFelix Fietkau <nbd@openwrt.org>
Thu, 30 Apr 2009 19:38:58 +0000 (19:38 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 30 Apr 2009 19:38:58 +0000 (19:38 +0000)
SVN-Revision: 15522

package/opkg/Makefile

index 8a06ec0726cbaffde7717d19fa1967f09cc46c1c..8b1961985ea635e58cd6c47556575239f9af69b8 100644 (file)
@@ -40,7 +40,7 @@ define Package/opkg/conffiles
 /etc/opkg.conf
 endef
 
-TARGET_CFLAGS += $(FPIC) $(if $(CONFIG_GCC_VERSION_4_3),-Wno-array-bounds)
+TARGET_CFLAGS += $(FPIC) $(if $(CONFIG_GCC_VERSION_4_3)$(CONFIG_GCC_VERSION_4_4),-Wno-array-bounds)
 EXTRA_CFLAGS += $(TARGET_CPPFLAGS)
 EXTRA_LDFLAGS += $(TARGET_LDFLAGS) -Wl,-rpath-link,$(STAGING_DIR)/usr/lib