workaround FTBFS on powerpc/gcc 4.6 in signalsloteditor
authorModestas Vainius <modax@debian.org>
Sun, 14 Jul 2019 10:19:27 +0000 (11:19 +0100)
committerFelix Geyer <fgeyer@debian.org>
Sun, 14 Jul 2019 10:19:27 +0000 (11:19 +0100)
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

tools/designer/src/components/signalsloteditor/signalsloteditor.pri

index e903ce114bb7b9f5498653e684dc722838513c18..c5ec101d2a4fe7bbebc59c23abc23ae75ab88c93 100644 (file)
@@ -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
+}
+