1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

CMake: use CMAKE_DL_LIBS on Linux for linking with GNU gold

Gold only link what explicitly specified and we use dlopen.
This commit is contained in:
Arseniy Shestakov 2018-02-18 15:15:19 +08:00
parent 3795985de9
commit 734441eb3b

View File

@ -176,6 +176,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR NOT WIN32) #so far all *nix compilers support suc
if(UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
set(SYSTEM_LIBS ${SYSTEM_LIBS} ${CMAKE_DL_LIBS})
endif()
endif()