package/git: fix build failure due to gcc bug 93847
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Thu, 20 Feb 2020 15:40:04 +0000 (16:40 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 26 Feb 2020 21:14:14 +0000 (22:14 +0100)
commitc7d736bb924fb9a85c497651e533d57c5b83d54f
treeb1d6364fc2ff5db9b3a6694745ba7936364a0e67
parenteb05f25ef2aacae8811e89daea51bd5a953636c1
package/git: fix build failure due to gcc bug 93847

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.

Fixes:
http://autobuild.buildroot.net/results/e225e62ea2d48660df4110790664f0c3306c1ea9/

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