File project.diff of Package libQtWebKit4
--- libQtWebKit4.changes.orig
+++ libQtWebKit4.changes
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Mon Dec 16 20:33:35 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>
+
+- fix build with TW: disable LTO and -fno-strict-aliasing
+- add 8G memory _contraints
+
+-------------------------------------------------------------------
Thu Nov 30 17:03:13 UTC 2017 - dimstar@opensuse.org
- Unconditionally buildrequire python-xml: our build script makes
--- libQtWebKit4.spec.orig
+++ libQtWebKit4.spec
@@ -125,6 +125,9 @@ This package contains development files
%patch16 -p1
%build
+# disable lto
+%define _lto_cflags %{nil}
+
# runs out of memory or creates static archives > 2/4GB boundary otherwise
%ifarch %arm aarch64
RPM_OPT_FLAGS="$RPM_OPT_FLAGS "
@@ -153,7 +156,7 @@ Tools/Scripts/build-webkit \
pushd tools/designer/src/plugins/qwebview/
qmake
qmake \
- QMAKE_CXXFLAGS+="%{optflags}" \
+ QMAKE_CXXFLAGS+="%{optflags} -fno-strict-aliasing" \
QMAKE_CFLAGS+="%{optflags}" \
QMAKE_LFLAGS+="-Wl,--as-needed"
make