blob: 25d66514f86f1e378551563e5c35fece797d0ec8 [file] [log] [blame]
Patrick Williams705982a2024-01-12 09:51:57 -06001From 8676ef287bb25b49668be4336387bdf83a0cae5c Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Mon, 1 Jan 2024 17:02:41 +0800
4Subject: [PATCH] test/common/CMakeLists.txt: add missing link with dlt
5
6The libvsomeip_utilities library uses functions e.g.
7dlt_check_library_version/dlt_register_app/dlt_unregister_app which are
8provided by dlt therefore add it to linker flags.
9
10Fixes:
11x86_64-poky-linux-ld.lld: error: undefined reference due to --no-allow-shlib-undefined: dlt_check_library_version
12>>> referenced by test/common/libvsomeip_utilities.so
13
14x86_64-poky-linux-ld.lld: error: undefined reference due to --no-allow-shlib-undefined: dlt_register_app
15>>> referenced by test/common/libvsomeip_utilities.so
16
17x86_64-poky-linux-ld.lld: error: undefined reference due to --no-allow-shlib-undefined: dlt_unregister_app
18>>> referenced by test/common/libvsomeip_utilities.so
19
20Upstream-Status: Submitted [https://github.com/COVESA/vsomeip/pull/602]
21
22Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
23---
24 test/common/CMakeLists.txt | 1 +
25 1 file changed, 1 insertion(+)
26
27diff --git a/test/common/CMakeLists.txt b/test/common/CMakeLists.txt
28index d4d14534..afc8c2d6 100644
29--- a/test/common/CMakeLists.txt
30+++ b/test/common/CMakeLists.txt
31@@ -27,6 +27,7 @@ TARGET_LINK_LIBRARIES (
32 ${Boost_LIBRARIES}
33 ${DL_LIBRARY}
34 ${TEST_LINK_LIBRARIES}
35+ ${DLT_LIBRARIES}
36 )
37
38 # ----------------------------------------------------------------------------
39--
402.25.1
41