File 08_powerpc_s390_no_gc_sections.diff of Package qtwebkit

Description: do not pass -Wl,--gc-sections on powerpc and s390 when building
             libQtWebKit.so; works around a binutils bug that results in a
             segfault on powerpc and an internal link error on s390.
Author: Steve Langasek <vorlon@debian.org>
Author: Modestas Vainius <modax@debian.org>
Origin: vendor
Forwarded: no
Last-Update: 2010-04-11 (s390 added)

--- a/WebCore/WebCore.pro
+++ b/WebCore/WebCore.pro
@@ -90,7 +90,7 @@ unix {
 }
 
 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):QMAKE_LFLAGS += -Wl,--gc-sections
 linux*-g++*:QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF
 
 CONFIG(release) {