1Upstream-Status: Submitted [https://github.com/eclipse/mosquitto/pull/1571] 2From 3fe5468f1bdca1bff1d18cf43c9e338f41aa9e32 Mon Sep 17 00:00:00 2001 3From: Gianfranco Costamagna <costamagnagianfranco@yahoo.it> 4Date: Wed, 22 Jan 2020 12:39:49 +0100 5Subject: [PATCH] Add dynamic symbols linking with cmake too 6 7Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it> 8--- 9 lib/CMakeLists.txt | 2 ++ 10 1 file changed, 2 insertions(+) 11 12--- a/lib/CMakeLists.txt 13+++ b/lib/CMakeLists.txt 14@@ -94,6 +94,8 @@ 15 OUTPUT_NAME mosquitto 16 VERSION ${VERSION} 17 SOVERSION 1 18+ LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/linker.version 19+ LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/linker.version" 20 ) 21 22 install(TARGETS libmosquitto RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") 23