aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2021-01-27 16:34:28 +0100
committerMauro Sardara <msardara@cisco.com>2021-01-27 16:34:28 +0100
commit1086bc4aae862bc0fe56a0cc688e6e72920ba589 (patch)
treecb4011f6aae9ac0de3d2593d4ba2f75b382c470c /libtransport
parentf77f2a01fb49b52f02d6493e926d0ccc41abf4d0 (diff)
[HICN-677] Add link flag to workaround undefined symbols referenced in vpp libraries.
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I9d628826374a38aaab749270dac1ca88fc9ebb35
Diffstat (limited to 'libtransport')
-rw-r--r--libtransport/src/test/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
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})