From: Felix Fietkau Date: Sat, 14 Feb 2009 14:11:12 +0000 (+0000) Subject: opkg: apparently array bounds checking is gcc 4.3 specific, move -Wno-array-bounds... X-Git-Tag: reboot~24490 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=commitdiff_plain;h=df0643a4089d4cec8c475701d8602c8dbba6237c;hp=18441c327ad0995d62da0a115c230bc67a0fe8e5 opkg: apparently array bounds checking is gcc 4.3 specific, move -Wno-array-bounds into TARGET_CFLAGS instead of a patch and make it conditional SVN-Revision: 14508 --- diff --git a/package/opkg/Makefile b/package/opkg/Makefile index 91db724767..6a857905b7 100644 --- a/package/opkg/Makefile +++ b/package/opkg/Makefile @@ -40,7 +40,7 @@ define Package/opkg/conffiles /etc/opkg.conf endef -TARGET_CFLAGS += $(FPIC) +TARGET_CFLAGS += $(FPIC) $(if $(CONFIG_GCC_VERSION_4_3),-Wno-array-bounds) EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/lib EXTRA_LDFLAGS+=-L$(STAGING_DIR)/usr/lib -Wl,-rpath-link,$(STAGING_DIR)/usr/lib diff --git a/package/opkg/patches/005-array_warnings.patch b/package/opkg/patches/005-array_warnings.patch deleted file mode 100644 index deaffbe33e..0000000000 --- a/package/opkg/patches/005-array_warnings.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/libopkg/Makefile.am -+++ b/libopkg/Makefile.am -@@ -1,6 +1,6 @@ - - HOST_CPU=@host_cpu@ --AM_CFLAGS=-Wall -Werror -DHOST_CPU_STR=\"$(HOST_CPU)\" -DBUILD_CPU=@build_cpu@ -DLIBDIR=\"@libdir@\" -DOPKGLIBDIR=\"@opkglibdir@\" -DDATADIR=\"@datadir@\" -I$(top_srcdir) $(BIGENDIAN_CFLAGS) $(CURL_CFLAGS) $(GPGME_CFLAGS) -+AM_CFLAGS=-Wall -Werror -Wno-array-bounds -DHOST_CPU_STR=\"$(HOST_CPU)\" -DBUILD_CPU=@build_cpu@ -DLIBDIR=\"@libdir@\" -DOPKGLIBDIR=\"@opkglibdir@\" -DDATADIR=\"@datadir@\" -I$(top_srcdir) $(BIGENDIAN_CFLAGS) $(CURL_CFLAGS) $(GPGME_CFLAGS) - - libopkg_includedir=$(includedir)/libopkg - libopkg_include_HEADERS= opkg.h