summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-12-24 17:25:21 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-12-24 17:25:21 +0000
commit866dda4baa7adec30045f727b7926f867ef3d4b0 (patch)
tree8edc076b944172d009d95a1bc72b98d2954b3e68
parent2d86ea2a1d66045472b405d7395a9732f3340f94 (diff)
downloadmtk-20170518-866dda4baa7adec30045f727b7926f867ef3d4b0.zip
mtk-20170518-866dda4baa7adec30045f727b7926f867ef3d4b0.tar.gz
mtk-20170518-866dda4baa7adec30045f727b7926f867ef3d4b0.tar.bz2
uci: work around a gcc bug which causes a bogus compiler warning
SVN-Revision: 13739
-rw-r--r--package/uci/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/uci/Makefile b/package/uci/Makefile
index 4d787dd..69dd50b 100644
--- a/package/uci/Makefile
+++ b/package/uci/Makefile
@@ -56,6 +56,11 @@ UCI_MAKEOPTS = \
CPPFLAGS="-I$(PKG_BUILD_DIR) -I$(STAGING_DIR)/usr/include" \
OS="Linux"
+# work around a nasty gcc bug
+ifneq ($(CONFIG_GCC_VERSION_4_2_4),)
+ UCI_MAKEOPTS += WOPTS=""
+endif
+
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) $(UCI_MAKEOPTS)
$(MAKE) -C $(PKG_BUILD_DIR)/lua $(UCI_MAKEOPTS)