# HG changeset patch # User Sebastien Jodogne # Date 1438183769 -7200 # Node ID 6f27794044a28cc7e730978240808370b8ac42e1 # Parent a5386ba9b1ca527d91ea0962b604a50a18c98959 missing version script diff -r a5386ba9b1ca -r 6f27794044a2 CMakeLists.txt --- a/CMakeLists.txt Tue Jul 28 09:18:59 2015 +0200 +++ b/CMakeLists.txt Wed Jul 29 17:29:29 2015 +0200 @@ -115,6 +115,10 @@ SET(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -lws2_32") endif() +if (CMAKE_COMPILER_IS_GNUCXX) + SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/Resources/VersionScript.map -Wl,--no-undefined") +endif() + set(CORE_SOURCES ${BOOST_SOURCES}