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 <giulio.benetti@benettiengineering.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit ddedf5e785
)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
a1af9fcd63
commit
65b635ef6a
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user