2024-02-15 16:48:07 +01:00
|
|
|
From a061819f2b68392ecff422c54d80cedb529acc15 Mon Sep 17 00:00:00 2001
|
2020-10-31 22:38:29 +01:00
|
|
|
From: Martchus <martchus@gmx.net>
|
|
|
|
Date: Thu, 5 Nov 2020 21:13:19 +0100
|
2024-02-17 20:34:14 +01:00
|
|
|
Subject: [PATCH 03/17] Fix using static PCRE2 and DBus-1
|
2020-10-31 22:38:29 +01:00
|
|
|
|
|
|
|
When making a static build of Qt we're using the static version of these
|
|
|
|
libraries and must define the corresponding macros.
|
|
|
|
|
|
|
|
Change-Id: I2387b79462b6d183b71f9433dd937f63fc7ef26e
|
|
|
|
---
|
|
|
|
src/corelib/text/qregularexpression.cpp | 5 +++++
|
|
|
|
src/dbus/qdbus_symbols_p.h | 4 ++++
|
|
|
|
2 files changed, 9 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/src/corelib/text/qregularexpression.cpp b/src/corelib/text/qregularexpression.cpp
|
2023-10-10 15:15:06 +02:00
|
|
|
index 93e4f7d1f9..23299af94b 100644
|
2020-10-31 22:38:29 +01:00
|
|
|
--- a/src/corelib/text/qregularexpression.cpp
|
|
|
|
+++ b/src/corelib/text/qregularexpression.cpp
|
2022-09-29 12:35:43 +02:00
|
|
|
@@ -20,6 +20,11 @@
|
2021-10-28 12:23:37 +02:00
|
|
|
#endif
|
2020-10-31 22:38:29 +01:00
|
|
|
|
|
|
|
#define PCRE2_CODE_UNIT_WIDTH 16
|
|
|
|
+#ifdef QT_STATIC
|
|
|
|
+#define PCRE_STATIC
|
|
|
|
+#define PCRE2_STATIC
|
|
|
|
+#endif
|
|
|
|
+#define PCRE2_EXP_DECL Q_CORE_EXPORT
|
|
|
|
|
|
|
|
#include <pcre2.h>
|
|
|
|
|
|
|
|
diff --git a/src/dbus/qdbus_symbols_p.h b/src/dbus/qdbus_symbols_p.h
|
2022-09-29 12:35:43 +02:00
|
|
|
index e3008be761..9c745c16c4 100644
|
2020-10-31 22:38:29 +01:00
|
|
|
--- a/src/dbus/qdbus_symbols_p.h
|
|
|
|
+++ b/src/dbus/qdbus_symbols_p.h
|
2022-09-29 12:35:43 +02:00
|
|
|
@@ -21,6 +21,10 @@
|
2020-10-31 22:38:29 +01:00
|
|
|
|
|
|
|
#ifndef QT_NO_DBUS
|
|
|
|
|
|
|
|
+#ifdef QT_STATIC
|
|
|
|
+# define DBUS_STATIC_BUILD
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#ifdef QT_LINKED_LIBDBUS
|
|
|
|
# include <dbus/dbus.h>
|
|
|
|
#else
|
|
|
|
--
|
2024-02-17 20:34:14 +01:00
|
|
|
2.43.2
|
2020-10-31 22:38:29 +01:00
|
|
|
|