Don't link QtWebkit with --gc-sections on powerpc and s390
authorSteve Langasek <steve.langasek@ubuntu.com>
Mon, 24 Jan 2022 10:55:59 +0000 (10:55 +0000)
committerUtkarsh Gupta <utkarsh@debian.org>
Mon, 24 Jan 2022 10:55:59 +0000 (10:55 +0000)
Origin: vendor
Forwarded: no
Last-Update: 2010-05-31 (mipsel added)

This works around a binutils bug that results in a segfault on powerpc,
an internal link error on s390, and OOM condition on mipsel.

Gbp-Pq: Name 96_webkit_no_gc_sections.diff

src/3rdparty/webkit/Source/WebCore/WebCore.pri

index ef7a883510bcfc923e63562557a0ddeaa401230b..3f56296fc83c978c680f55e2c381db931f9bb46f 100644 (file)
@@ -317,7 +317,7 @@ mac {
 }
 
 unix:!mac:*-g++*:QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections
-unix:!mac:*-g++*:QMAKE_LFLAGS += -Wl,--gc-sections
+unix:!mac:*-g++*:!equals(QT_ARCH, powerpc):!equals(QT_ARCH, s390):!equals(QT_ARCH, mips):!equals(QT_ARCH, arm):QMAKE_LFLAGS += -Wl,--gc-sections
 linux*-g++*:QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF
 
 unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui QtNetwork