diff options
author | Vladislav Vaintroub <vvaintroub@koala> | 2009-12-07 02:16:05 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@koala> | 2009-12-07 02:16:05 +0100 |
commit | a1ebd4245e9158b8fb242a49e9aeb6a0840fc92e (patch) | |
tree | be34c035a12551aff48f3bcdb4fcbf4754f8b3f0 /mysys/CMakeLists.txt | |
parent | 555c99c8eb9dc1371df13af029c42e98e59756c0 (diff) | |
download | mariadb-git-a1ebd4245e9158b8fb242a49e9aeb6a0840fc92e.tar.gz |
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)
Diffstat (limited to 'mysys/CMakeLists.txt')
-rwxr-xr-x | mysys/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
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) |