Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | Upstream-Status: Submitted [https://github.com/eclipse/mosquitto/pull/1571] |
| 2 | From 3fe5468f1bdca1bff1d18cf43c9e338f41aa9e32 Mon Sep 17 00:00:00 2001 |
| 3 | From: Gianfranco Costamagna <costamagnagianfranco@yahoo.it> |
| 4 | Date: Wed, 22 Jan 2020 12:39:49 +0100 |
| 5 | Subject: [PATCH] Add dynamic symbols linking with cmake too |
| 6 | |
| 7 | Signed-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 |
Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 14 | @@ -94,6 +94,8 @@ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 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}") |