Fix crash with multi threaded QFont/QTextEngine usage
authorKonstantin Ritt <ritt.ks@gmail.com>
Mon, 19 Jan 2015 14:18:57 +0000 (18:18 +0400)
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>
Tue, 20 Jan 2015 04:47:32 +0000 (05:47 +0100)
Since we don't configure HB-NG via its configure script, we have to
define all optional switchers we do care about by our own.
Some of these switchers were missing in harfbuzz-ng.pro, causing
HB-NG to be built with no threading support.

Task-number: QTBUG-43850
Change-Id: I0944a68fe0bfae3306a3e6085e25704f0d0d0efc
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
src/3rdparty/harfbuzz-ng/harfbuzz-ng.pro

index 79c2a3e2d6454a65fa48f872614478ce05c2c670..6b51d9679ade99867e5396a1ee00c0d27b2edc8a 100644 (file)
@@ -7,7 +7,12 @@ CONFIG += \
 
 load(qt_helper_lib)
 
-DEFINES += HAVE_OT HAVE_ATEXIT HB_NO_UNICODE_FUNCS HB_DISABLE_DEPRECATED
+DEFINES += HAVE_OT HB_NO_UNICODE_FUNCS HB_DISABLE_DEPRECATED
+
+# platform/compiler specific definitions
+DEFINES += HAVE_ATEXIT
+gcc: DEFINES += HAVE_INTEL_ATOMIC_PRIMITIVES
+unix: DEFINES += HAVE_PTHREAD HAVE_SCHED_H HAVE_SCHED_YIELD
 
 INCLUDEPATH += $$PWD/include