-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path3f9c9db.diff
23 lines (21 loc) · 1.03 KB
/
3f9c9db.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 3f9c9db15d95fe52438971d8c1d01dfe00c23c6c Mon Sep 17 00:00:00 2001
From: Kai Koehne <kai.koehne@qt.io>
Date: Tue, 30 Jul 2019 11:07:18 +0200
Subject: [PATCH] Use pkg-config --libs-only-other to resolve e.g. -pthread
Fixes: QTBUG-77159
Change-Id: If9ab3797ccfb52c6b96a4ab120c59fd8896d5466
---
diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf
index 242544d..f759d04 100644
--- a/mkspecs/features/qt_configure.prf
+++ b/mkspecs/features/qt_configure.prf
@@ -823,7 +823,8 @@
contains($${1}.libs, ".*\\.$${QMAKE_EXTENSION_STATICLIB}$") {
qtRunLoggedCommand("$$pkg_config --static --libs-only-L $$args", libpaths)|return(false)
qtRunLoggedCommand("$$pkg_config --static --libs-only-l $$args", libs)|return(false)
- eval(libs = $$libpaths $$libs)
+ qtRunLoggedCommand("$$pkg_config --static --libs-only-other $$args", libs_other)|return(false)
+ eval(libs = $$libpaths $$libs $$libs_other)
!qtConfResolveLibs($${1}.libs, $$libs): \
return(false)
}