summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/uci/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/uci/Makefile b/package/uci/Makefile
index 4d787ddfd..69dd50bae 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)