From 65b635ef6ae381a7505f987be421257f6b6b5dc8 Mon Sep 17 00:00:00 2001 From: Giulio Benetti Date: Sat, 10 Sep 2022 15:52:56 +0200 Subject: [PATCH] package/qt5/qt5xmlpatterns: fix build failure due to gcc bug 90620 The qt5xmlpatterns package exhibits gcc bug 90620 [0] when built for the Microblaze 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_90620=y. Fixes: http://autobuild.buildroot.net/results/346/346e6d502a8927c8e95eea156f5b2943a85d0a6b/ [0] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90620 Signed-off-by: Giulio Benetti Signed-off-by: Yann E. MORIN (cherry picked from commit ddedf5e785956d37bd971f1f804f8333cd9cc592) Signed-off-by: Peter Korsgaard --- package/qt5/qt5xmlpatterns/qt5xmlpatterns.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/qt5/qt5xmlpatterns/qt5xmlpatterns.mk b/package/qt5/qt5xmlpatterns/qt5xmlpatterns.mk index 27818ecb78..08f6d56747 100644 --- a/package/qt5/qt5xmlpatterns/qt5xmlpatterns.mk +++ b/package/qt5/qt5xmlpatterns/qt5xmlpatterns.mk @@ -20,4 +20,8 @@ ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y) QT5XMLPATTERNS_LICENSE += , BSD-3-Clause (examples) endif +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_90620),y) +QT5XMLPATTERNS_CONF_OPTS += "QMAKE_CXXFLAGS+=-O0" +endif + $(eval $(qmake-package))