diff options
author | Michele Papalini <micpapal@cisco.com> | 2021-01-27 16:09:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2021-01-27 16:09:08 +0000 |
commit | 6e1907b0d03a5e7eb6a76e9f17de05799202df62 (patch) | |
tree | 1ee69201cbc8a78a1072c8787bdfe7cbf4fb5527 | |
parent | 4ee2993fc90cb73d4bdb2c724a9ae2d1e73db1c6 (diff) | |
parent | 1086bc4aae862bc0fe56a0cc688e6e72920ba589 (diff) |
Merge "[HICN-677] Add link flag to workaround undefined symbols referenced in vpp libraries."
-rw-r--r-- | libtransport/src/test/CMakeLists.txt | 4 |
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}) |