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) --- cmake/plugin.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake/plugin.cmake') 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 -- cgit v1.2.1