[Buildroot] [git commit] package/harfbuzz: work around arc gcc10 bug

From: Yann E. MORIN <hidden>
Date: 2021-09-11 15:26:53
Subsystem: the rest · Maintainer: Linus Torvalds

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

With BR2_GCC_VERSION_ARC=y(arc gcc10) harfbuzz package exhibits a gcc bug
that makes build to fail. This bug is found only in official arc gcc10
provided by Synopsis, so we can't use the BR2_TOOLCHAIN_HAS_GCC_BUG_
approach since bug can't be even filed in gcc bugzilla.
To work around this, if BR2_GCC_VERSION_ARC=y we force using -O0.

Fixes:
http://autobuild.buildroot.net/results/e4d/e4da9ba40c8f4567601d404e20dd6a0b322210c2/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Yann E. MORIN <redacted>
---
 package/harfbuzz/harfbuzz.mk | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/package/harfbuzz/harfbuzz.mk b/package/harfbuzz/harfbuzz.mk
index d0595d6416..70c1e1f7e6 100644
--- a/package/harfbuzz/harfbuzz.mk
+++ b/package/harfbuzz/harfbuzz.mk
@@ -94,5 +94,9 @@ ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
 HARFBUZZ_CXXFLAGS += $(TARGET_CXXFLAGS) -DHB_NO_MT
 endif
 
+ifeq ($(BR2_GCC_VERSION_ARC),y)
+HARFBUZZ_CXXFLAGS += -O0
+endif
+
 $(eval $(meson-package))
 $(eval $(host-meson-package))
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help