Patrick Williams | 705982a | 2024-01-12 09:51:57 -0600 | [diff] [blame^] | 1 | From 8676ef287bb25b49668be4336387bdf83a0cae5c Mon Sep 17 00:00:00 2001 |
| 2 | From: Yi Zhao <yi.zhao@windriver.com> |
| 3 | Date: Mon, 1 Jan 2024 17:02:41 +0800 |
| 4 | Subject: [PATCH] test/common/CMakeLists.txt: add missing link with dlt |
| 5 | |
| 6 | The libvsomeip_utilities library uses functions e.g. |
| 7 | dlt_check_library_version/dlt_register_app/dlt_unregister_app which are |
| 8 | provided by dlt therefore add it to linker flags. |
| 9 | |
| 10 | Fixes: |
| 11 | x86_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 | |
| 14 | x86_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 | |
| 17 | x86_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 | |
| 20 | Upstream-Status: Submitted [https://github.com/COVESA/vsomeip/pull/602] |
| 21 | |
| 22 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
| 23 | --- |
| 24 | test/common/CMakeLists.txt | 1 + |
| 25 | 1 file changed, 1 insertion(+) |
| 26 | |
| 27 | diff --git a/test/common/CMakeLists.txt b/test/common/CMakeLists.txt |
| 28 | index 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 | -- |
| 40 | 2.25.1 |
| 41 | |