Add all symbols to the dynamic linker symbol table

spectrum2 uses them to check for its compiled-in frontends.
This commit is contained in:
Frank Zschockelt 2016-01-31 15:42:32 +01:00
parent c4eda8c23b
commit 0cf6ce5de2

View file

@ -25,6 +25,11 @@ else ()
target_link_libraries(spectrum2 transport spectrum2-xmpp-frontend spectrum2-slack-frontend ${SWIFTEN_LIBRARY} ${LOG4CXX_LIBRARIES} ${PROTOBUF_LIBRARY})
endif()
if (NOT MSVC)
# export all symbols (used for loading frontends)
set(CMAKE_EXE_LINKER_FLAGS "-Wl,-export-dynamic")
endif()
INSTALL(TARGETS spectrum2 RUNTIME DESTINATION bin)
INSTALL(FILES