Don't compile UIC with -O2 inside Scratchbox

It makes QEMU crash when running the resulting binary.

Change-Id: I94e5d703205827dea88770336a8c5201e7333486
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
This commit is contained in:
Tor Arne Vestbø 2012-01-31 14:24:03 +01:00 committed by Qt by Nokia
parent 4ab6860172
commit 36a590c90d

View 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]