From: Modestas Vainius Date: Fri, 9 Sep 2016 17:09:51 +0000 (+0000) Subject: workaround FTBFS on powerpc/gcc 4.6 in signalsloteditor X-Git-Tag: archive/raspbian/4%4.8.7+dfsg-15+rpi1~1^2^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ff5d40b3c1c181bc3eacc4f0448db3a517f0eefc;p=qt4-x11.git workaround FTBFS on powerpc/gcc 4.6 in signalsloteditor This should workaround g++-4.6/powerpc ICE that is related to dwarf2 [1][2]. It is very likely the patch will not be needed long term as the gcc bug might eventually be fixed. [1] .moc/release-shared/qteditorfactory.moc:237:1: internal compiler error: in size_of_die, at dwarf2out.c:10749 Please submit a full bug report, with preprocessed source if appropriate. [2] https://buildd.debian.org/status/fetch.php?pkg=qt4-x11&arch=powerpc&ver=4%3A4.7.2-4&stamp=1304320067 Gbp-Pq: Name powerpc_designer_gstabs.diff --- diff --git a/tools/designer/src/components/signalsloteditor/signalsloteditor.pri b/tools/designer/src/components/signalsloteditor/signalsloteditor.pri index e903ce114..c5ec101d2 100644 --- a/tools/designer/src/components/signalsloteditor/signalsloteditor.pri +++ b/tools/designer/src/components/signalsloteditor/signalsloteditor.pri @@ -19,3 +19,10 @@ SOURCES += $$PWD/signalslot_utils.cpp \ $$PWD/signalsloteditorwindow.cpp FORMS += $$PWD/connectdialog.ui + +equals(QT_ARCH, powerpc) { + message("powerpc/gcc 4.6 ICE workaround for designer: build with -gstabs rather than -g") + QMAKE_CXXFLAGS -= -g + QMAKE_CXXFLAGS += -gstabs +} +