Don't compile UIC with -O2 inside Scratchbox
authorTor Arne Vestbø <tor.arne.vestbo@nokia.com>
Tue, 31 Jan 2012 13:24:03 +0000 (14:24 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 31 Jan 2012 20:48:23 +0000 (21:48 +0100)
It makes QEMU crash when running the resulting binary.

Change-Id: I94e5d703205827dea88770336a8c5201e7333486
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
src/tools/uic/uic.pro

index b1840c0..6598180 100644 (file)
@@ -14,6 +14,12 @@ HEADERS += uic.h
 SOURCES += main.cpp \
            uic.cpp
 
+linux-g++-maemo:contains(QT_ARCH, arm) {
+    # UIC will crash when running inside QEMU if built with -O2
+    QMAKE_CFLAGS_RELEASE -= -O2
+    QMAKE_CXXFLAGS_RELEASE -= -O2
+}
+
 include(../bootstrap/bootstrap.pri)
 
 target.path=$$[QT_INSTALL_BINS]