From 36a590c90ddab6fa438b7b54b05d89e8f9698a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 31 Jan 2012 14:24:03 +0100 Subject: Don't compile UIC with -O2 inside Scratchbox It makes QEMU crash when running the resulting binary. Change-Id: I94e5d703205827dea88770336a8c5201e7333486 Reviewed-by: Simon Hausmann --- src/tools/uic/uic.pro | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/tools') diff --git a/src/tools/uic/uic.pro b/src/tools/uic/uic.pro index b1840c0a85..6598180e45 100644 --- a/src/tools/uic/uic.pro +++ b/src/tools/uic/uic.pro @@ -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] -- cgit v1.2.3