summaryrefslogtreecommitdiff
path: root/cmake/plugin.cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@koala>2009-12-07 02:16:05 +0100
committerVladislav Vaintroub <vvaintroub@koala>2009-12-07 02:16:05 +0100
commita1ebd4245e9158b8fb242a49e9aeb6a0840fc92e (patch)
treebe34c035a12551aff48f3bcdb4fcbf4754f8b3f0 /cmake/plugin.cmake
parent555c99c8eb9dc1371df13af029c42e98e59756c0 (diff)
downloadmariadb-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 'cmake/plugin.cmake')
-rw-r--r--cmake/plugin.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/plugin.cmake b/cmake/plugin.cmake
index 3ad52ce4c98..f718563acda 100644
--- a/cmake/plugin.cmake
+++ b/cmake/plugin.cmake
@@ -125,7 +125,11 @@ MACRO(MYSQL_ADD_PLUGIN)
DTRACE_INSTRUMENT(${target})
SET_TARGET_PROPERTIES (${target} PROPERTIES PREFIX ""
COMPILE_DEFINITIONS "MYSQL_DYNAMIC_PLUGIN")
+ IF(ARG_LINK_LIBRARIES)
+ TARGET_LINK_LIBRARIES (${target} ${ARG_LINK_LIBRARIES})
+ ENDIF()
TARGET_LINK_LIBRARIES (${target} mysqlservices)
+
# Plugin uses symbols defined in mysqld executable.
# Some operating systems like Windows and OSX and are pretty strict about
# unresolved symbols. Others are less strict and allow unresolved symbols