Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2f3e7777
Commit
2f3e7777
authored
Nov 25, 2009
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add --disable-shared equivalent
fix mtr (empty argument passed to mysqld)
parent
b224e24a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
18 deletions
+31
-18
CMakeLists.txt
CMakeLists.txt
+6
-1
libmysql/CMakeLists.txt
libmysql/CMakeLists.txt
+16
-12
libmysqld/CMakeLists.txt
libmysqld/CMakeLists.txt
+3
-1
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+5
-0
mysys/CMakeLists.txt
mysys/CMakeLists.txt
+0
-3
sql/CMakeLists.txt
sql/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
2f3e7777
...
...
@@ -67,11 +67,16 @@ INCLUDE(cmake/plugin.cmake)
INCLUDE
(
cmake/install_macros.cmake
)
# Handle options
OPTION
(
DISABLE_SHARED
"Don't build shared libraries, compile code as position-dependent"
OFF
)
IF
(
DISABLE_SHARED
)
SET
(
WITHOUT_DYNAMIC_PLUGINS 1
)
ENDIF
()
OPTION
(
ENABLED_PROFILING
"Enable profiling"
ON
)
OPTION
(
CYBOZU
""
OFF
)
OPTION
(
BACKUP_TEST
""
OFF
)
OPTION
(
WITHOUT_SERVER OFF
)
MARK_AS_ADVANCED
(
CYBOZU BACKUP_TEST WITHOUT_SERVER
)
MARK_AS_ADVANCED
(
CYBOZU BACKUP_TEST WITHOUT_SERVER
DISABLE_SHARED
)
OPTION
(
ENABLE_DEBUG_SYNC
"Enable debug sync (debug builds only)"
ON
)
...
...
libmysql/CMakeLists.txt
View file @
2f3e7777
...
...
@@ -153,18 +153,22 @@ SET(LIBS clientlib dbug strings vio mysys ${ZLIB_LIBRARY} ${SSL_LIBRARIES})
# Merge several convenience libraries into one big mysqlclient
# and link them together into shared library.
MERGE_LIBRARIES
(
mysqlclient STATIC
${
LIBS
}
)
MERGE_LIBRARIES
(
libmysql SHARED
${
LIBS
}
EXPORTS
${
CLIENT_API_FUNCTIONS
}
)
INSTALL
(
TARGETS mysqlclient DESTINATION lib
)
IF
(
UNIX
)
# Name of shared library is mysqlclient on Unix
SET_TARGET_PROPERTIES
(
libmysql PROPERTIES OUTPUT_NAME mysqlclient
)
# clean direct output needs to be set several targets have the same name
#(mysqlclient in this case)
SET_TARGET_PROPERTIES
(
mysqlclient PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
# Install links to shared and static libraries
# (append _r to base name)
INSTALL_SYMLINK
(
${
CMAKE_SHARED_LIBRARY_PREFIX
}
mysqlclient_r libmysql lib
)
INSTALL_SYMLINK
(
${
CMAKE_STATIC_LIBRARY_PREFIX
}
mysqlclient_r mysqlclient lib
)
INSTALL_SYMLINK
(
${
CMAKE_STATIC_LIBRARY_PREFIX
}
mysqlclient_r mysqlclient lib
)
ENDIF
()
INSTALL_DEBUG_SYMBOLS
(
mysqlclient
)
INSTALL
(
TARGETS mysqlclient libmysql DESTINATION lib
)
INSTALL_DEBUG_SYMBOLS
(
"mysqlclient;libmysql"
)
IF
(
NOT DISABLE_SHARED
)
MERGE_LIBRARIES
(
libmysql SHARED
${
LIBS
}
EXPORTS
${
CLIENT_API_FUNCTIONS
}
)
IF
(
UNIX
)
# Name of shared library is mysqlclient on Unix
SET_TARGET_PROPERTIES
(
libmysql PROPERTIES OUTPUT_NAME mysqlclient
)
# clean direct output needs to be set several targets have the same name
#(mysqlclient in this case)
SET_TARGET_PROPERTIES
(
mysqlclient PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
SET_TARGET_PROPERTIES
(
libmysql PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
INSTALL_SYMLINK
(
${
CMAKE_SHARED_LIBRARY_PREFIX
}
mysqlclient_r libmysql lib
)
ENDIF
()
INSTALL_DEBUG_SYMBOLS
(
libmysql
)
ENDIF
()
libmysqld/CMakeLists.txt
View file @
2f3e7777
...
...
@@ -120,8 +120,10 @@ ENDFOREACH()
MERGE_LIBRARIES
(
mysqlserver STATIC
${
EMBEDDED_LIBS
}
OUTPUT_NAME
${
MYSQLSERVER_OUTPUT_NAME
}
)
INSTALL
(
TARGETS mysqlserver DESTINATION lib
)
INSTALL_DEBUG_SYMBOLS
(
mysqlserver
)
IF
(
MSVC
)
IF
(
MSVC
AND NOT DISABLE_SHARED
)
MERGE_LIBRARIES
(
libmysqld SHARED
${
LIBS
}
EXPORTS
${
CLIENT_API_FUNCTIONS
}
)
INSTALL
(
TARGETS libmysqld DESTINATION lib
)
INSTALL_DEBUG_SYMBOLS
(
libmysqld
)
ENDIF
()
mysql-test/mysql-test-run.pl
View file @
2f3e7777
...
...
@@ -4275,6 +4275,11 @@ sub mysqld_arguments ($$$) {
{
;
# Dont add --skip-log-bin when mysqld have --log-slave-updates in config
}
elsif
(
$arg
eq
"")
{
# We can get an empty argument when we set environment variables to ""
# (e.g plugin not found). Just skip it.
}
else
{
mtr_add_arg
(
$args
,
"
%s
",
$arg
);
...
...
mysys/CMakeLists.txt
View file @
2f3e7777
...
...
@@ -54,9 +54,6 @@ ENDIF()
IF
(
UNIX
)
# some workarounds
SET
(
MYSYS_SOURCES
${
MYSYS_SOURCES
}
my_port.c
)
# Some stuff not ported to windows
SET
(
MYSYS_SOURCES
${
MYSYS_SOURCES
}
my_atomic.c
)
SET
(
MYSYS_SOURCES
${
MYSYS_SOURCES
}
my_getncpus.c
)
ENDIF
()
ADD_CONVENIENCE_LIBRARY
(
mysys
${
MYSYS_SOURCES
}
)
TARGET_LINK_LIBRARIES
(
mysys dbug strings
${
ZLIB_LIBRARY
}
)
...
...
sql/CMakeLists.txt
View file @
2f3e7777
...
...
@@ -178,7 +178,7 @@ ADD_CUSTOM_TARGET(
#Need this only for embedded
SET_TARGET_PROPERTIES
(
GenServerSource PROPERTIES EXCLUDE_FROM_ALL TRUE
)
IF
(
WIN32 OR HAVE_DLOPEN
)
IF
(
WIN32 OR HAVE_DLOPEN
AND NOT DISABLE_SHARED
)
ADD_LIBRARY
(
udf_example MODULE udf_example.c
)
SET_TARGET_PROPERTIES
(
udf_example PROPERTIES PREFIX
""
)
# udf_example depends on strings
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment