diff mbox series

[2/3] package/bullet: fix build failure due to gcc bug 93532

Message ID 20200203165946.50232-3-giulio.benetti@benettiengineering.com
State New
Headers show
Series Riscv32 gcc bug 93532 workaround | expand

Commit Message

Giulio Benetti Feb. 3, 2020, 4:59 p.m. UTC
The bullet package exhibits gcc bug 93532 when built for the Riscv32
architecture with optimization enabled, which causes a build to hang.

As done for other packages in Buildroot work around this gcc bug by
setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_93532=y.

Fixes:
http://autobuild.buildroot.net/results/9a4/9a405ec6fabfa306c14a671a5e09359ac623c25b/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 package/bullet/bullet.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/package/bullet/bullet.mk b/package/bullet/bullet.mk
index b25fc5d219..e13dbba0c6 100644
--- a/package/bullet/bullet.mk
+++ b/package/bullet/bullet.mk
@@ -25,7 +25,7 @@  endif
 
 BULLET_CXXFLAGS = $(TARGET_CXXFLAGS)
 
-ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180)$(BR2_TOOLCHAIN_HAS_GCC_BUG_93532),y)
 BULLET_CXXFLAGS += -O0
 endif