aboutsummaryrefslogtreecommitdiffstats
path: root/community/dbus-cpp/0001-Explicitly-build-dbus-cppc-helper-as-static-library.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/dbus-cpp/0001-Explicitly-build-dbus-cppc-helper-as-static-library.patch')
-rw-r--r--community/dbus-cpp/0001-Explicitly-build-dbus-cppc-helper-as-static-library.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/community/dbus-cpp/0001-Explicitly-build-dbus-cppc-helper-as-static-library.patch b/community/dbus-cpp/0001-Explicitly-build-dbus-cppc-helper-as-static-library.patch
new file mode 100644
index 0000000000..3f0e2221de
--- /dev/null
+++ b/community/dbus-cpp/0001-Explicitly-build-dbus-cppc-helper-as-static-library.patch
@@ -0,0 +1,29 @@
+From 33d0c45d390ce28e191350f003fced8b28a5f289 Mon Sep 17 00:00:00 2001
+From: Luca Weiss <luca@z3ntu.xyz>
+Date: Sat, 20 Mar 2021 17:45:53 +0100
+Subject: [PATCH] Explicitly build dbus-cppc-helper as static library
+
+The project sets -fvisibility=hidden globally which causes linking
+errors when CMake decides to build dbus-cppc-helper as shared library.
+
+compiler_main.cpp:(.text.startup+0x1): undefined reference to `core::dbus::Compiler::main(int, char const**)'
+---
+ src/core/dbus/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/core/dbus/CMakeLists.txt b/src/core/dbus/CMakeLists.txt
+index 4713d4d..441f98d 100644
+--- a/src/core/dbus/CMakeLists.txt
++++ b/src/core/dbus/CMakeLists.txt
+@@ -80,7 +80,7 @@ install(
+ # thus collect symbols in this temporary helper library that is not
+ # installed but just linked to the actual compiler executable.
+ add_library(
+- dbus-cppc-helper
++ dbus-cppc-helper STATIC
+
+ compiler.cpp
+ generator.cpp
+--
+2.31.0
+