Remove -rdynamic. on Unix/Linux.

If you link with that flag, the daemons will be bound to the ace lib
from the building directory rather than final destination directory.
This commit is contained in:
Antz 2017-02-07 19:52:01 +00:00 committed by Antz
parent 831346b1ea
commit dfe6c3ec3e

View file

@ -140,9 +140,9 @@ set(EXECUTABLE_LINK_FLAGS "")
if(UNIX) if(UNIX)
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
set(EXECUTABLE_LINK_FLAGS "-Wl,--no-as-needed -pthread -lrt ${EXECUTABLE_LINK_FLAGS} -rdynamic") set(EXECUTABLE_LINK_FLAGS "-Wl,--no-as-needed -pthread -lrt ${EXECUTABLE_LINK_FLAGS}")
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux") elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
set(EXECUTABLE_LINK_FLAGS "-Wl,--no-as-needed -ldl -pthread -lrt ${EXECUTABLE_LINK_FLAGS} -rdynamic") set(EXECUTABLE_LINK_FLAGS "-Wl,--no-as-needed -ldl -pthread -lrt ${EXECUTABLE_LINK_FLAGS}")
endif() endif()
endif() endif()