From 1086bc4aae862bc0fe56a0cc688e6e72920ba589 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Wed, 27 Jan 2021 16:34:28 +0100 Subject: [HICN-677] Add link flag to workaround undefined symbols referenced in vpp libraries. Signed-off-by: Mauro Sardara Change-Id: I9d628826374a38aaab749270dac1ca88fc9ebb35 --- libtransport/src/test/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libtransport/src/test/CMakeLists.txt b/libtransport/src/test/CMakeLists.txt index cdebfcbee..19e59c7e1 100644 --- a/libtransport/src/test/CMakeLists.txt +++ b/libtransport/src/test/CMakeLists.txt @@ -18,6 +18,9 @@ list(APPEND TESTS test_transport_producer ) +if (${LIBTRANSPORT_SHARED} MATCHES ".*-memif.*") + set(LINK_FLAGS "-Wl,-unresolved-symbols=ignore-in-shared-libs") +endif() foreach(test ${TESTS}) build_executable(${test} @@ -28,6 +31,7 @@ foreach(test ${TESTS}) DEPENDS gtest ${LIBTRANSPORT_SHARED} COMPONENT lib${LIBTRANSPORT} DEFINITIONS "${COMPILER_DEFINITIONS}" + LINK_FLAGS ${LINK_FLAGS} ) add_test_internal(${test}) -- cgit 1.2.3-korg