[Buildroot] [git commit] package/git: fix build failure due to gcc bug 93847

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Feb 26 21:14:14 UTC 2020

commit: https://git.buildroot.net/buildroot/commit/?id=c7d736bb924fb9a85c497651e533d57c5b83d54f
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

The git package exhibits gcc bug 93847 when built for the Nios2
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_93847=y.


Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
 package/git/git.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/git/git.mk b/package/git/git.mk
index a5c8669fc9..f32a2f8eb9 100644
--- a/package/git/git.mk
+++ b/package/git/git.mk
@@ -67,7 +67,7 @@ endif
-ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)

More information about the buildroot mailing list