Skip to content

Commit

Permalink
Merge pull request #1571 from LocutusOfBorg/dynamic-symbols
Browse files Browse the repository at this point in the history
Add dynamic symbols linking with cmake too
  • Loading branch information
ralight committed Sep 28, 2023
2 parents f4400fa + 5b011ff commit b9a842a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ set_target_properties(libmosquitto PROPERTIES
OUTPUT_NAME mosquitto
VERSION ${VERSION}
SOVERSION 1
LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/linker.version
LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/linker.version"
)

install(TARGETS libmosquitto
Expand Down

0 comments on commit b9a842a

Please sign in to comment.