From: Steve Langasek Date: Tue, 22 Aug 2023 13:42:24 +0000 (+0100) Subject: Don't link QtWebkit with --gc-sections on powerpc and s390 X-Git-Tag: archive/raspbian/4%4.8.7+dfsg-18+rpi1+deb10u2^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6fe2d3342ebdb5035220ca6853b727cd3df83c18;p=qt4-x11.git Don't link QtWebkit with --gc-sections on powerpc and s390 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 --- diff --git a/src/3rdparty/webkit/Source/WebCore/WebCore.pri b/src/3rdparty/webkit/Source/WebCore/WebCore.pri index ef7a88351..3f56296fc 100644 --- a/src/3rdparty/webkit/Source/WebCore/WebCore.pri +++ b/src/3rdparty/webkit/Source/WebCore/WebCore.pri @@ -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