aboutsummarylogtreecommitdiffstats
path: root/0012-Fix-linking-against-static-pcre.patch
blob: 36514aa456e7a8de4cbdfb9c3a5598fe1a36c495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 3fccf1f581659113ae325f5192c8d6870c894c84 Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sun, 18 Sep 2016 14:24:01 +0200
Subject: [PATCH 12/33] Fix linking against static pcre

Change-Id: I3225c6e82dc4d17aef37d4289c16eb7a5ea3c5a1
---
 src/corelib/tools/qregularexpression.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/corelib/tools/qregularexpression.cpp b/src/corelib/tools/qregularexpression.cpp
index bdaa2d3243..90f8250c03 100644
--- a/src/corelib/tools/qregularexpression.cpp
+++ b/src/corelib/tools/qregularexpression.cpp
@@ -53,6 +53,10 @@
 #include <QtCore/qdatastream.h>
 
 #define PCRE2_CODE_UNIT_WIDTH 16
+#ifdef QT_STATIC
+#define PCRE_STATIC
+#define PCRE2_STATIC
+#endif
 
 #include <pcre2.h>
 
-- 
2.22.0