| 1 |
From 3de736e4fe4bb309a9e5c8a3ed1d6e10e749b0f1 Mon Sep 17 00:00:00 2001 |
| 2 |
From: Thorsten Alteholz <[email protected]> |
| 3 |
Date: Sat, 27 Dec 2025 19:39:39 +0100 |
| 4 |
Subject: [PATCH] Silence blhc by allowing to use external linker flags |
| 5 |
|
| 6 |
--- |
| 7 |
.../lib/LomiriOnlineAccountsClient/CMakeLists.txt | 2 +- |
| 8 |
.../lib/LomiriOnlineAccountsDaemon/CMakeLists.txt | 2 +- |
| 9 |
.../lib/LomiriOnlineAccountsPlugin/CMakeLists.txt | 2 +- |
| 10 |
online-accounts-ui/src/CMakeLists.txt | 2 +- |
| 11 |
online-accounts/lib/qml/Lomiri/OnlineAccounts/CMakeLists.txt | 2 +- |
| 12 |
online-accounts/lib/qt/LomiriOnlineAccounts/CMakeLists.txt | 2 +- |
| 13 |
6 files changed, 6 insertions(+), 6 deletions(-) |
| 14 |
|
| 15 |
diff --git a/online-accounts-client/lib/LomiriOnlineAccountsClient/CMakeLists.txt b/online-accounts-client/lib/LomiriOnlineAccountsClient/CMakeLists.txt |
| 16 |
index bfa1883..1acf5cc 100644 |
| 17 |
--- a/online-accounts-client/lib/LomiriOnlineAccountsClient/CMakeLists.txt |
| 18 |
+++ b/online-accounts-client/lib/LomiriOnlineAccountsClient/CMakeLists.txt |
| 19 |
@@ -1,7 +1,7 @@ |
| 20 |
project(LomiriOnlineAccountsClient LANGUAGES CXX) |
| 21 |
set(SUFFIXED_PROJECT_NAME ${PROJECT_NAME}${PROJECT_SUFFIX}) |
| 22 |
|
| 23 |
-set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined") |
| 24 |
+set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") |
| 25 |
set(CMAKE_CXX_VISIBILITY_PRESET hidden) |
| 26 |
|
| 27 |
set(CLIENT_LIB lomiri-online-accounts-client${LIB_SUFFIX}) |
| 28 |
diff --git a/online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/CMakeLists.txt b/online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/CMakeLists.txt |
| 29 |
index da96c3b..d1f7bf4 100644 |
| 30 |
--- a/online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/CMakeLists.txt |
| 31 |
+++ b/online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/CMakeLists.txt |
| 32 |
@@ -4,7 +4,7 @@ set(SUFFIXED_PROJECT_NAME ${PROJECT_NAME}${PROJECT_SUFFIX}) |
| 33 |
pkg_check_modules(ACCOUNTSQT accounts-qt${QT_VERSION} REQUIRED) |
| 34 |
pkg_check_modules(SIGNONQT libsignon-qt${QT_VERSION} REQUIRED) |
| 35 |
|
| 36 |
-set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined") |
| 37 |
+set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") |
| 38 |
set(CMAKE_CXX_VISIBILITY_PRESET hidden) |
| 39 |
|
| 40 |
set(ACCOUNTD_LIB lomiri-online-accounts-daemon${LIB_SUFFIX}) |
| 41 |
diff --git a/online-accounts-plugins/lib/LomiriOnlineAccountsPlugin/CMakeLists.txt b/online-accounts-plugins/lib/LomiriOnlineAccountsPlugin/CMakeLists.txt |
| 42 |
index ffc4667..57fb5bb 100644 |
| 43 |
--- a/online-accounts-plugins/lib/LomiriOnlineAccountsPlugin/CMakeLists.txt |
| 44 |
+++ b/online-accounts-plugins/lib/LomiriOnlineAccountsPlugin/CMakeLists.txt |
| 45 |
@@ -19,7 +19,7 @@ add_definitions( |
| 46 |
add_definitions(-DONLINE_ACCOUNTS_PLUGIN_DIR="${ONLINE_ACCOUNTS_PLUGIN_DIR}") |
| 47 |
add_definitions(-DBUILDING_ONLINE_ACCOUNTS_PLUGIN) |
| 48 |
|
| 49 |
-set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined") |
| 50 |
+set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") |
| 51 |
set(CMAKE_CXX_VISIBILITY_PRESET hidden) |
| 52 |
|
| 53 |
add_library(${PLUGIN_LIB} SHARED |
| 54 |
diff --git a/online-accounts-ui/src/CMakeLists.txt b/online-accounts-ui/src/CMakeLists.txt |
| 55 |
index 17f6d90..e64e6ad 100644 |
| 56 |
--- a/online-accounts-ui/src/CMakeLists.txt |
| 57 |
+++ b/online-accounts-ui/src/CMakeLists.txt |
| 58 |
@@ -28,7 +28,7 @@ add_definitions(-DDEBUG_ENABLED) |
| 59 |
add_definitions(-DOAU_PLUGIN_DIR="${ONLINE_ACCOUNTS_PLUGIN_DIR}") |
| 60 |
add_definitions(-DPLUGIN_PRIVATE_MODULE_DIR="${ONLINE_ACCOUNTS_PLUGIN_PRIVATE_MODULE_DIR}") |
| 61 |
|
| 62 |
-set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined") |
| 63 |
+set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") |
| 64 |
set(CMAKE_CXX_VISIBILITY_PRESET hidden) |
| 65 |
|
| 66 |
set(UI_SOURCES |
| 67 |
diff --git a/online-accounts/lib/qml/Lomiri/OnlineAccounts/CMakeLists.txt b/online-accounts/lib/qml/Lomiri/OnlineAccounts/CMakeLists.txt |
| 68 |
index 33d3a71..fb9f696 100644 |
| 69 |
--- a/online-accounts/lib/qml/Lomiri/OnlineAccounts/CMakeLists.txt |
| 70 |
+++ b/online-accounts/lib/qml/Lomiri/OnlineAccounts/CMakeLists.txt |
| 71 |
@@ -6,7 +6,7 @@ set(LOA_QML_MODULE LomiriOnlineAccountsQML) |
| 72 |
set(API_URI Lomiri.OnlineAccounts) |
| 73 |
set(API_VERSION 2.0) |
| 74 |
|
| 75 |
-set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined") |
| 76 |
+set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") |
| 77 |
|
| 78 |
if(ENABLE_QT6) |
| 79 |
qt_add_qml_module(${LOA_QML_MODULE} |
| 80 |
diff --git a/online-accounts/lib/qt/LomiriOnlineAccounts/CMakeLists.txt b/online-accounts/lib/qt/LomiriOnlineAccounts/CMakeLists.txt |
| 81 |
index 230c042..27cf7d0 100644 |
| 82 |
--- a/online-accounts/lib/qt/LomiriOnlineAccounts/CMakeLists.txt |
| 83 |
+++ b/online-accounts/lib/qt/LomiriOnlineAccounts/CMakeLists.txt |
| 84 |
@@ -8,7 +8,7 @@ include_directories( |
| 85 |
${CMAKE_SOURCE_DIR}/online-accounts-daemon/lib |
| 86 |
) |
| 87 |
|
| 88 |
-set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined") |
| 89 |
+set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") |
| 90 |
set(CMAKE_CXX_VISIBILITY_PRESET hidden) |
| 91 |
|
| 92 |
add_definitions( |
| 93 |
-- |
| 94 |
2.53.0 |
| 95 |
|