From 0cf6ce5de219d15ae933e9d1c66c88e8c348e8fa 2016-02-01 22:33:22 From: Frank Zschockelt Date: 2016-02-01 22:33:22 Subject: [PATCH] Add all symbols to the dynamic linker symbol table spectrum2 uses them to check for its compiled-in frontends. --- diff --git a/spectrum/src/CMakeLists.txt b/spectrum/src/CMakeLists.txt index d97d27eabd606461a650c5f87c1fd3fef2e75f64..280539ad75e8889a5abe309fe68292161a104090 100644 --- a/spectrum/src/CMakeLists.txt +++ b/spectrum/src/CMakeLists.txt @@ -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