We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eafb097 commit 9437e55Copy full SHA for 9437e55
src/core/CMakeLists.txt
@@ -79,6 +79,10 @@ target_link_libraries(ipfixcol2base
79
80
# Build IPFIXCOL2 exacutable with all symbols from the base library
81
set(BASE_LIB -Wl,--whole-archive ipfixcol2base -Wl,--no-whole-archive)
82
+if (CMAKE_HOST_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_HOST_SYSTEM_NAME STREQUAL "OpenBSD")
83
+ set(BASE_LIB ${BASE_LIB} -rdynamic)
84
+endif()
85
+
86
add_executable(ipfixcol2 main.cpp)
87
target_link_libraries(ipfixcol2 ${BASE_LIB})
88
set_target_properties(ipfixcol2 PROPERTIES # by default, hide all symbols
0 commit comments