aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-11-01 07:42:41 -0700
committerJake Petroules <jake.petroules@qt.io>2017-11-04 16:26:03 +0000
commit19cae9ddecbff856e5ff0e294402091db0c2484b (patch)
tree5cbaa1e67388d09923c732770805b0031dfdea95
parent49eabec1a99b3b2a1db05cb46d5402015391cedb (diff)
Fix build of pinyin plugin on platforms without pthread
...such as VxWorks. Normally, the Qt dependency pulls in pthread, because the qt feature adds the thread feature (which in turn adds pthread and other necessary flags to the compiler and linker command lines), but in this case we don't have Qt so it must be manually added. Use the higher level abstraction instead of the direct -pthread flag, so that the compiler and linker flags used are taken from mkspecs. Task-number: QTBUG-63516 Change-Id: I88876810129078dfe4898314e45379ff87f95b80 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
-rw-r--r--src/virtualkeyboard/3rdparty/pinyin/pinyin.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virtualkeyboard/3rdparty/pinyin/pinyin.pro b/src/virtualkeyboard/3rdparty/pinyin/pinyin.pro
index 485ee5dc..9ad9a318 100644
--- a/src/virtualkeyboard/3rdparty/pinyin/pinyin.pro
+++ b/src/virtualkeyboard/3rdparty/pinyin/pinyin.pro
@@ -55,5 +55,5 @@ win32 {
CONFIG += qt
QT = core
} else {
- LIBS += -pthread
+ CONFIG *= thread
}