From: Steve Langasek Date: Mon, 24 Jan 2022 10:55:59 +0000 (+0000) Subject: Don't link QtWebkit with --gc-sections on powerpc and s390 X-Git-Tag: archive/raspbian/4%4.8.7+dfsg-11+rpi1+deb9u3^2~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ec8e1ba0cf1696343fcdaf40c91a9aff3b191796;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