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>
This commit is contained in:
parent
eb05f25ef2
commit
c7d736bb92
@ -67,7 +67,7 @@ endif
|
||||
|
||||
GIT_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180)$(BR2_TOOLCHAIN_HAS_GCC_BUG_93847),y)
|
||||
GIT_CFLAGS += -O0
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user