Skip to content
Permalink
Browse files
MDEV-21548 Explicitly declare sql_bultins library STATIC.
Someone tried -DBUILD_SHARED_LIBS:BOOL=ON. This did not work well
  • Loading branch information
vaintroub committed Jan 21, 2020
1 parent e1b62f3 commit 92d6c13
Showing 1 changed file with 1 addition and 1 deletion.
@@ -289,7 +289,7 @@ IF(MSVC AND NOT WITHOUT_DYNAMIC_PLUGINS)
SET_TARGET_PROPERTIES(mysqld_import_lib PROPERTIES IMPORTED_LOCATION ${MYSQLD_LIB})
ENDIF()

ADD_LIBRARY( sql_builtins ${CMAKE_CURRENT_BINARY_DIR}/sql_builtin.cc)
ADD_LIBRARY(sql_builtins STATIC ${CMAKE_CURRENT_BINARY_DIR}/sql_builtin.cc)
TARGET_LINK_LIBRARIES(sql_builtins ${MYSQLD_STATIC_PLUGIN_LIBS})

MYSQL_ADD_EXECUTABLE(mysqld ${MYSQLD_SOURCE} DESTINATION ${INSTALL_SBINDIR} COMPONENT Server)

0 comments on commit 92d6c13

Please sign in to comment.