From: Giulio Benetti Date: Tue, 17 Aug 2021 21:31:12 +0000 (+0200) Subject: package/bullet: fix build failure due to gcc bug 101952 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b785de9f3f4f87732a657ded2809706763502163;p=buildroot.git package/bullet: fix build failure due to gcc bug 101952 The bullet package exhibits gcc bug 101952 when built for the SH4 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_101952=y like we already do for BR2_TOOLCHAIN_HAS_GCC_BUG_85180=y. Fixes: http://autobuild.buildroot.net/results/32b/32bfaf0aae57ed18c18e82a72a958af9b3e1b241/ Signed-off-by: Giulio Benetti Signed-off-by: Thomas Petazzoni --- diff --git a/package/bullet/bullet.mk b/package/bullet/bullet.mk index 01931b58a8..cc72be7c60 100644 --- a/package/bullet/bullet.mk +++ b/package/bullet/bullet.mk @@ -24,7 +24,7 @@ endif BULLET_CXXFLAGS = $(TARGET_CXXFLAGS) -ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y) +ifneq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180)$(BR2_TOOLCHAIN_HAS_GCC_BUG_101952),) BULLET_CXXFLAGS += -O0 endif