--- qtiplot/qtiplot.pro.orig	2011-11-03 00:55:25.000000000 +0800
+++ qtiplot/qtiplot.pro	2011-12-02 23:11:03.000000000 +0800
@@ -232,3 +232,12 @@
 	RC_FILE	= qtiplot.rc
 	include(../3rdparty/QtSolutions/qtbrowserplugin/src/qtbrowserplugin.pri)
 }
+
+#
+# ticket #30761: qtiplot build-phase hangs indefinitely (compiling SymbolDialog.cpp)
+# bug reproduction: Mac OS X 10.7.2, Xcode 4.2.1, llvm-gcc-4.2 --version:
+#     i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
+# workaround: disable -O2 flag
+#
+QMAKE_CFLAGS_RELEASE   -= -O2
+QMAKE_CXXFLAGS_RELEASE -= -O2
