[Buildroot] [PATCH 1/1] package/brotli: fix build on microblaze with -02

Fabrice Fontaine fontaine.fabrice at gmail.com
Tue May 14 21:15:26 UTC 2019


Fixes:
 - http://autobuild.buildroot.org/results/4790c30b75cdec18f67cda9c6afcb6971ee27608

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
 package/brotli/brotli.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/brotli/brotli.mk b/package/brotli/brotli.mk
index 2c1ad48753..4afd3628a8 100644
--- a/package/brotli/brotli.mk
+++ b/package/brotli/brotli.mk
@@ -14,4 +14,11 @@ BROTLI_CONF_OPTS = \
 	-DBROTLI_DISABLE_TESTS=ON \
 	-DBROTLI_BUNDLED_MODE=OFF
 
+# prevents from triggering GCC ICE
+# A bug was reported to the gcc bug tracker:
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485
+ifeq ($(BR2_microblaze),y)
+BROTLI_CONF_OPTS += -DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -O0"
+endif
+
 $(eval $(cmake-package))
-- 
2.20.1



More information about the buildroot mailing list