From a1ebd4245e9158b8fb242a49e9aeb6a0840fc92e Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Mon, 7 Dec 2009 02:16:05 +0100 Subject: On Linux, support -Wl,--no-undefined (only client shared library) and --Wl,--as-needed (all shared modules). The later will remove unused dependencies (also from gcc and C++ runtime) --- mysys/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mysys/CMakeLists.txt') diff --git a/mysys/CMakeLists.txt b/mysys/CMakeLists.txt index 2264b99e75b..06d053f1902 100755 --- a/mysys/CMakeLists.txt +++ b/mysys/CMakeLists.txt @@ -63,5 +63,6 @@ IF(UNIX) SET(MYSYS_SOURCES ${MYSYS_SOURCES} my_port.c) ENDIF() ADD_CONVENIENCE_LIBRARY(mysys ${MYSYS_SOURCES}) -TARGET_LINK_LIBRARIES(mysys dbug strings ${ZLIB_LIBRARY}) +TARGET_LINK_LIBRARIES(mysys dbug strings ${ZLIB_LIBRARY} + ${LIBNLS} ${LIBM}) DTRACE_INSTRUMENT(mysys) -- cgit v1.2.1