blob: 93ff6bcfa6efd6cadac9bb1423b22e25dc7c8d65 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001Upstream-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@@ -89,6 +89,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}")