package/git: work around gcc bug 85180
authorGiulio Benetti <giulio.benetti@micronovasrl.com>
Tue, 25 Jun 2019 07:02:54 +0000 (09:02 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 1 Aug 2019 13:36:48 +0000 (15:36 +0200)
commit7c7c0e4406aea45b2db0a932b128960b4ef4b474
tree56a327bac97c2097c1eae6f815ef94b08eb8b141
parentc99665cde7e47e6eee0aa6ced2d5fed92f716a51
package/git: work around gcc bug 85180

With Microblaze Gcc version < 8.x the build hangs due to gcc bug
85180: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180. The bug
shows up when building git with optimization but not when building with
-O0. To work around this, if BR2_TOOLCHAIN_HAS_GCC_BUG_85180=y we force
using -O0.

Fixes:

  http://autobuild.buildroot.net/results/7ad/7adff001631053ae5a3cb3e176d321f6a2d3cceb/

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/git/git.mk