aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Giulio Benetti <giulio.benetti@micronovasrl.com>2019-06-14 23:03:36 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-06-19 21:55:10 +0200
commitf3fa156fbf192ad2ffb7183ea9757e112ea8c755 (patch)
treee642ca30c04d73f4c22543f03607c6099d6fd100
parent01322e386f5d1a45bce433b5a4ff722e92e0ab0b (diff)
downloadbuildroot-f3fa156fbf192ad2ffb7183ea9757e112ea8c755.tar.gz
buildroot-f3fa156fbf192ad2ffb7183ea9757e112ea8c755.tar.bz2
package/lua-cqueues: fix build failure due to gcc bug 68485
The lua-cqueues package exhibits gcc bug 68485 when built for the Microblaze architecture with optimization enabled, which causes a build failure. As done for other packages in Buildroot work around this gcc bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y. Fixes: http://autobuild.buildroot.net/results/c35964dda4e2328c2c1f3b2388677b68c5ed461e/ Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/lua-cqueues/lua-cqueues.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/package/lua-cqueues/lua-cqueues.mk b/package/lua-cqueues/lua-cqueues.mk
index 4f31c3277f..42dacc1946 100644
--- a/package/lua-cqueues/lua-cqueues.mk
+++ b/package/lua-cqueues/lua-cqueues.mk
@@ -10,8 +10,15 @@ LUA_CQUEUES_LICENSE = MIT
LUA_CQUEUES_LICENSE_FILES = LICENSE
LUA_CQUEUES_DEPENDENCIES = luainterpreter openssl host-m4
+LUA_CQUEUES_CFLAGS = $(TARGET_CFLAGS)
+
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
+LUA_CQUEUES_CFLAGS += -O0
+endif
+
define LUA_CQUEUES_BUILD_CMDS
- $(TARGET_MAKE_ENV) $(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
+ $(TARGET_MAKE_ENV) $(MAKE1) $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(LUA_CQUEUES_CFLAGS)" -C $(@D) \
prefix="$(STAGING_DIR)/usr" all$(LUAINTERPRETER_ABIVER)
endef