Commit 7128fefa authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix compile with -DWITHOUT_DYNAMIC_PLUGINS on Unix

parent f6cb4f0a
...@@ -322,18 +322,9 @@ ADD_CUSTOM_TARGET( ...@@ -322,18 +322,9 @@ ADD_CUSTOM_TARGET(
SET_TARGET_PROPERTIES(GenServerSource PROPERTIES EXCLUDE_FROM_ALL TRUE) SET_TARGET_PROPERTIES(GenServerSource PROPERTIES EXCLUDE_FROM_ALL TRUE)
IF(WIN32 OR HAVE_DLOPEN AND NOT DISABLE_SHARED) IF(WIN32 OR HAVE_DLOPEN AND NOT DISABLE_SHARED)
ADD_LIBRARY(udf_example MODULE udf_example.c) ADD_LIBRARY(udf_example MODULE udf_example.c udf_example.def)
SET_TARGET_PROPERTIES(udf_example PROPERTIES PREFIX "") SET_TARGET_PROPERTIES(udf_example PROPERTIES PREFIX "")
# udf_example depends on strings TARGET_LINK_LIBRARIES(udf_example strings)
IF(WIN32)
IF(MSVC)
SET_TARGET_PROPERTIES(udf_example PROPERTIES LINK_FLAGS "/DEF:${CMAKE_CURRENT_SOURCE_DIR}/udf_example.def")
ENDIF()
TARGET_LINK_LIBRARIES(udf_example strings)
ELSE()
# udf_example is using safemutex exported by mysqld
TARGET_LINK_LIBRARIES(udf_example mysqld)
ENDIF()
ENDIF() ENDIF()
FOREACH(tool glibtoolize libtoolize aclocal autoconf autoheader automake gtar FOREACH(tool glibtoolize libtoolize aclocal autoconf autoheader automake gtar
......
...@@ -326,6 +326,9 @@ if(MRN_BUNDLED) ...@@ -326,6 +326,9 @@ if(MRN_BUNDLED)
STORAGE_ENGINE MODULE_ONLY STORAGE_ENGINE MODULE_ONLY
RECOMPILE_FOR_EMBEDDED RECOMPILE_FOR_EMBEDDED
LINK_LIBRARIES ${MRN_LIBRARIES}) LINK_LIBRARIES ${MRN_LIBRARIES})
if(NOT TARGET mroonga)
return()
endif()
else() else()
add_library(mroonga MODULE ${MRN_ALL_SOURCES}) add_library(mroonga MODULE ${MRN_ALL_SOURCES})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment