aboutsummaryrefslogtreecommitdiffstats
path: root/community/dbus-cpp/0001-Explicitly-build-dbus-cppc-helper-as-static-library.patch
blob: 3f0e2221de5762f533ed5fc9793ced2353bb0b70 (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
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