package/lmbench: fix build failure due to gcc bug 101915
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Sat, 14 Aug 2021 21:52:07 +0000 (23:52 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 19 Aug 2021 20:58:02 +0000 (22:58 +0200)
commit63943ecf455fabba2b91f5c2a901f220d3975cb4
tree5e0da027ee4b2e92419a88f12c3f53127a464e3a
parentb61c93645da26a2b6a674881e61c5d72297fc74a
package/lmbench: fix build failure due to gcc bug 101915

The lmbench package exhibits gcc bug 101915 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_101915=y.

Fixes:
http://autobuild.buildroot.net/results/ae1/ae1e4d61ed367c6cb64442c60d98882cc7985346/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/lmbench/lmbench.mk