diff mbox series

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

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

Commit Message

Giulio Benetti Feb. 3, 2020, 4:59 p.m. UTC
The lmbench 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.


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


diff --git a/package/lmbench/lmbench.mk b/package/lmbench/lmbench.mk
index 2f3b19b5f8..09299a0c17 100644
--- a/package/lmbench/lmbench.mk
+++ b/package/lmbench/lmbench.mk
@@ -28,6 +28,10 @@  define LMBENCH_CONFIGURE_CMDS
 	touch $@
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_93532),y)
 # Note: there is a second stage 'make' invocation from the 'scripts/build'
 # script. So the variables override below don't take direct effect in
 # src/Makefile.