From 00d2002b110a15faf53d022876b2005541d024f7 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Mon, 19 Jul 2010 19:48:00 +0200 Subject: [qt4] add hack for linker crash on ppc Signed-off-by: Michael Olbrich --- .../ppc-hack.diff | 28 ++++++++++++++++++++++ patches/qt-everywhere-opensource-src-4.6.3/series | 1 + 2 files changed, 29 insertions(+) create mode 100644 patches/qt-everywhere-opensource-src-4.6.3/ppc-hack.diff (limited to 'patches') diff --git a/patches/qt-everywhere-opensource-src-4.6.3/ppc-hack.diff b/patches/qt-everywhere-opensource-src-4.6.3/ppc-hack.diff new file mode 100644 index 000000000..e15829383 --- /dev/null +++ b/patches/qt-everywhere-opensource-src-4.6.3/ppc-hack.diff @@ -0,0 +1,28 @@ +Subject: Hack: disable -Wl,--gc-sections on ppc +From: Michael Olbrich + +The linker in our toolchain crashes with -Wl,--gc-sections on PowerPC. +This patch removes this option and related options when building +for PowerPC. + +Signed-off-by: Michael Olbrich + +--- + src/3rdparty/webkit/WebCore/WebCore.pro | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +Index: b/src/3rdparty/webkit/WebCore/WebCore.pro +=================================================================== +--- a/src/3rdparty/webkit/WebCore/WebCore.pro ++++ b/src/3rdparty/webkit/WebCore/WebCore.pro +@@ -65,8 +65,8 @@ unix { + lessThan(QT_MINOR_VERSION, 4): QMAKE_PKGCONFIG_REQUIRES += QtXml + } + +-unix:!mac:*-g++*:QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections +-unix:!mac:*-g++*:QMAKE_LFLAGS += -Wl,--gc-sections ++unix:!ppc:!mac:*-g++*:QMAKE_CXXFLAGS += -ffunction-sections -fdata-sections ++unix:!ppc:!mac:*-g++*:QMAKE_LFLAGS += -Wl,--gc-sections + + CONFIG(release):!CONFIG(QTDIR_build) { + contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols diff --git a/patches/qt-everywhere-opensource-src-4.6.3/series b/patches/qt-everywhere-opensource-src-4.6.3/series index 6a3c7a632..d98b501b6 100644 --- a/patches/qt-everywhere-opensource-src-4.6.3/series +++ b/patches/qt-everywhere-opensource-src-4.6.3/series @@ -4,3 +4,4 @@ hide-cursor-at-startup.diff fix-examples.diff fix-qws-dnd.diff fix-host-zlib.diff +ppc-hack.diff -- cgit v1.2.3