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
463a60ec
Commit
463a60ec
authored
Apr 30, 2010
by
Daniel Fischer
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
2b588155
2087a2e8
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
61 additions
and
27 deletions
+61
-27
cmake/build_configurations/mysql_release.cmake
cmake/build_configurations/mysql_release.cmake
+2
-2
libmysql/CMakeLists.txt
libmysql/CMakeLists.txt
+25
-10
libmysqld/examples/CMakeLists.txt
libmysqld/examples/CMakeLists.txt
+3
-1
man/CMakeLists.txt
man/CMakeLists.txt
+4
-0
mysql-test/CMakeLists.txt
mysql-test/CMakeLists.txt
+1
-0
scripts/CMakeLists.txt
scripts/CMakeLists.txt
+4
-0
sql-bench/CMakeLists.txt
sql-bench/CMakeLists.txt
+1
-2
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+21
-12
No files found.
cmake/build_configurations/mysql_release.cmake
View file @
463a60ec
...
...
@@ -136,8 +136,8 @@ IF(UNIX)
# Linux flags
IF
(
CMAKE_SYSTEM_NAME MATCHES
"Linux"
)
IF
(
CMAKE_C_COMPILER_ID MATCHES
"Intel"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-static-intel -
g -O3 -unroll2 -ip -mp -restrict
"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-static-intel -
g -O3 -unroll2 -ip -mp -restrict
"
)
SET
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"-static-intel -
static-libgcc -g -O3 -unroll2 -ip -mp -restrict -no-ftz -no-prefetch
"
)
SET
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-static-intel -
static-libgcc -g -O3 -unroll2 -ip -mp -restrict -no-ftz -no-prefetch
"
)
SET
(
WITH_SSL no
)
ENDIF
()
ENDIF
()
...
...
libmysql/CMakeLists.txt
View file @
463a60ec
...
...
@@ -177,10 +177,18 @@ ENDIF()
IF
(
NOT DISABLE_SHARED
)
MERGE_LIBRARIES
(
libmysql SHARED
${
LIBS
}
EXPORTS
${
CLIENT_API_FUNCTIONS
}
COMPONENT SharedLibraries
)
IF
(
UNIX
)
# libtool compatability
IF
(
CMAKE_SYSTEM_NAME MATCHES
"FreeBSD"
OR APPLE
)
SET
(
OS_SHARED_LIB_VERSION
"
${
SHARED_LIB_MAJOR_VERSION
}
"
)
ELSEIF
(
CMAKE_SYSTEM_NAME MATCHES
"HP-UX"
)
SET
(
OS_SHARED_LIB_VERSION
"
${
SHARED_LIB_MAJOR_VERSION
}
.0"
)
ELSE
()
SET
(
OS_SHARED_LIB_VERSION
"
${
SHARED_LIB_MAJOR_VERSION
}
.0.0"
)
ENDIF
()
# Name of shared library is mysqlclient on Unix
SET_TARGET_PROPERTIES
(
libmysql PROPERTIES
OUTPUT_NAME mysqlclient
VERSION
"
${
SHARED_LIB_MAJOR_VERSION
}
.0.0
"
VERSION
"
${
OS_SHARED_LIB_VERSION
}
"
SOVERSION
"
${
SHARED_LIB_MAJOR_VERSION
}
"
)
IF
(
LINK_FLAG_NO_UNDEFINED
)
GET_TARGET_PROPERTY
(
libmysql_link_flags libmysql LINK_FLAGS
)
...
...
@@ -195,15 +203,22 @@ IF(NOT DISABLE_SHARED)
SET_TARGET_PROPERTIES
(
mysqlclient PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
SET_TARGET_PROPERTIES
(
libmysql PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
# Install 3 links to libmysqlclient.so (client_r)
FOREACH
(
ver
""
"
${
SHARED_LIB_MAJOR_VERSION
}
"
"
${
SHARED_LIB_MAJOR_VERSION
}
.0.0"
)
GET_VERSIONED_LIBNAME
(
"
${
CMAKE_SHARED_LIBRARY_PREFIX
}
mysqlclient_r"
"
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
"
"
${
ver
}
"
linkname
)
INSTALL_SYMLINK
(
${
linkname
}
libmysql
${
INSTALL_LIBDIR
}
COMPONENT SharedLibraries
)
# Install links to libmysqlclient.so (client_r)
GET_VERSIONED_LIBNAME
(
"
${
CMAKE_SHARED_LIBRARY_PREFIX
}
mysqlclient_r"
"
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
"
""
linkname
)
INSTALL_SYMLINK
(
${
linkname
}
libmysql
${
INSTALL_LIBDIR
}
)
SET
(
OS_SHARED_LIB_SYMLINKS
"
${
SHARED_LIB_MAJOR_VERSION
}
"
"
${
OS_SHARED_LIB_VERSION
}
"
)
LIST
(
REMOVE_DUPLICATES OS_SHARED_LIB_SYMLINKS
)
FOREACH
(
ver
${
OS_SHARED_LIB_SYMLINKS
}
)
GET_VERSIONED_LIBNAME
(
"
${
CMAKE_SHARED_LIBRARY_PREFIX
}
mysqlclient_r"
"
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
"
"
${
ver
}
"
linkname
)
INSTALL_SYMLINK
(
${
linkname
}
libmysql
${
INSTALL_LIBDIR
}
)
ENDFOREACH
()
ENDIF
()
ENDIF
()
libmysqld/examples/CMakeLists.txt
View file @
463a60ec
...
...
@@ -23,7 +23,9 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
ADD_DEFINITIONS
(
-DEMBEDDED_LIBRARY -UMYSQL_CLIENT
)
MYSQL_ADD_EXECUTABLE
(
mysql_embedded ../../client/completion_hash.cc
# We never use "mysql_embedded", is more of a linktest, so we don't
# use MYSQL_ADD_EXECUTABLE as that would install it and package it
ADD_EXECUTABLE
(
mysql_embedded ../../client/completion_hash.cc
../../client/mysql.cc ../../client/readline.cc
)
TARGET_LINK_LIBRARIES
(
mysql_embedded mysqlserver
)
IF
(
UNIX
)
...
...
man/CMakeLists.txt
View file @
463a60ec
...
...
@@ -15,8 +15,12 @@
# Copy man pages
FILE
(
GLOB MAN1_FILES *.1
)
FILE
(
GLOB MAN1_EXCLUDE make_win_bin_dist.1
)
FILE
(
GLOB MAN8_FILES *.8
)
IF
(
MAN1_FILES
)
IF
(
MAN1_EXCLUDE
)
LIST
(
REMOVE_ITEM MAN1_FILES
${
MAN1_EXCLUDE
}
)
ENDIF
()
INSTALL
(
FILES
${
MAN1_FILES
}
DESTINATION
${
INSTALL_MANDIR
}
/man1
)
ENDIF
()
IF
(
MAN8_FILES
)
...
...
mysql-test/CMakeLists.txt
View file @
463a60ec
...
...
@@ -19,6 +19,7 @@ INSTALL(
COMPONENT Test
PATTERN
"var/"
EXCLUDE
PATTERN
"lib/My/SafeProcess"
EXCLUDE
PATTERN
"lib/t*"
EXCLUDE
PATTERN
"CPack"
EXCLUDE
PATTERN
"CMake*"
EXCLUDE
PATTERN
"mtr.out*"
EXCLUDE
...
...
scripts/CMakeLists.txt
View file @
463a60ec
...
...
@@ -93,6 +93,10 @@ IF(CMAKE_GENERATOR MATCHES "Makefiles")
# No multiconfig build - use CMAKE_C_FLAGS
SET
(
CFLAGS
"@CMAKE_C_FLAGS@"
)
SET
(
CXXFLAGS
"@CMAKE_CXX_FLAGS@"
)
FOREACH
(
ARCH
${
CMAKE_OSX_ARCHITECTURES
}
)
SET
(
CFLAGS
"
${
CFLAGS
}
-arch
${
ARCH
}
"
)
SET
(
CXXFLAGS
"
${
CXXFLAGS
}
-arch
${
ARCH
}
"
)
ENDFOREACH
()
ELSE
()
# Multiconfig build - use CMAKE_C_FLAGS_RELWITHDEBINFO
SET
(
CFLAGS
"@CMAKE_C_FLAGS_RELWITHDEBINFO@"
)
...
...
sql-bench/CMakeLists.txt
View file @
463a60ec
...
...
@@ -18,7 +18,6 @@ FILE(GLOB all_files
${
CMAKE_SOURCE_DIR
}
/sql-bench/*
${
CMAKE_SOURCE_DIR
}
/sql-bench/Data/ATIS/*
${
CMAKE_SOURCE_DIR
}
/sql-bench/Data/Wisconsin/*
${
CMAKE_SOURCE_DIR
}
/sql-bench/Comments/*
${
CMAKE_SOURCE_DIR
}
/sql-bench/limits/*
)
...
...
@@ -34,7 +33,7 @@ ENDIF()
GET_FILENAME_COMPONENT
(
basedir
${
CMAKE_SOURCE_DIR
}
ABSOLUTE
)
FOREACH
(
file
${
all_files
}
)
IF
(
NOT IS_DIRECTORY
${
file
}
AND NOT
${
file
}
MATCHES
"Make"
)
IF
(
NOT IS_DIRECTORY
${
file
}
AND NOT
${
file
}
MATCHES
"Make
|as3ap|/example$
"
)
FILE
(
RELATIVE_PATH relpath
${
basedir
}
${
file
}
)
SET
(
target_relpath
${
relpath
}
)
GET_FILENAME_COMPONENT
(
ext
${
file
}
EXT
)
...
...
support-files/mysql.spec.sh
View file @
463a60ec
...
...
@@ -122,20 +122,20 @@
%endif
%if %
{
distro_specific
}
%if %
(
test
-f
/etc/redhat-release
&&
echo
1
||
echo
0
)
%define
redhat
ver %
(
rpm
-qf
--qf
'%%{version}\\n'
/etc/redhat-release |
sed
-e
's/^\\([0-9]*\\).*/\\1/g'
)
%if
"%
redhat
ver"
==
"4"
%define distro_description
Red Hat
Enterprise Linux 4
%define distro_releasetag
rh
el4
%define
el
ver %
(
rpm
-qf
--qf
'%%{version}\\n'
/etc/redhat-release |
sed
-e
's/^\\([0-9]*\\).*/\\1/g'
)
%if
"%
el
ver"
==
"4"
%define distro_description Enterprise Linux 4
%define distro_releasetag el4
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel
time
zlib-devel
%define distro_requires chkconfig coreutils
grep
procps shadow-utils
%else
%if
"%
redhat
ver"
==
"5"
%define distro_description
Red Hat
Enterprise Linux 5
%define distro_releasetag
rh
el5
%if
"%
el
ver"
==
"5"
%define distro_description Enterprise Linux 5
%define distro_releasetag el5
%define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel
time
zlib-devel
%define distro_requires chkconfig coreutils
grep
procps shadow-utils
%else
%
{
error:
Red Hat %
{
redhat
ver
}
is unsupported
}
%
{
error:
Enterprise Linux %
{
el
ver
}
is unsupported
}
%endif
%endif
%else
...
...
@@ -168,6 +168,13 @@
%define distro_requires coreutils
grep
procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd
%endif
# Avoid debuginfo RPMs, leaves binaries unstripped
%define debug_package %
{
nil
}
# Hack to work around bug in RHEL5 __os_install_post macro, wrong inverted
# test for __debug_package
%define __strip /bin/true
# ----------------------------------------------------------------------------
# Support optional "tcmalloc" library (experimental)
# ----------------------------------------------------------------------------
...
...
@@ -389,7 +396,7 @@ mkdir debug
-DFEATURE_SET
=
"%{feature_set}"
\
-DCOMPILATION_COMMENT
=
"%{compilation_comment_debug}"
\
-DMYSQL_SERVER_SUFFIX
=
"%{server_suffix}"
make
VERBOSE
=
1
mysqld mysqlserver
make
VERBOSE
=
1
)
# Build full release
mkdir
release
...
...
@@ -570,7 +577,7 @@ if [ ! -d $mysql_datadir/test ] ; then mkdir $mysql_datadir/test; fi
# use insserv for older SuSE Linux versions
if
[
-x
/sbin/insserv
]
;
then
/sbin/insserv %
{
_sysconfdir
}
/init.d/mysql
# use chkconfig on
Red Hat
and newer SuSE releases
# use chkconfig on
Enterprise Linux
and newer SuSE releases
elif
[
-x
/sbin/chkconfig
]
;
then
/sbin/chkconfig
--add
mysql
fi
...
...
@@ -631,7 +638,7 @@ if [ $1 = 0 ] ; then
# For older SuSE Linux versions
if
[
-x
/sbin/insserv
]
;
then
/sbin/insserv
-r
%
{
_sysconfdir
}
/init.d/mysql
# use chkconfig on
Red Hat
and newer SuSE releases
# use chkconfig on
Enterprise Linux
and newer SuSE releases
elif
[
-x
/sbin/chkconfig
]
;
then
/sbin/chkconfig
--del
mysql
fi
...
...
@@ -723,6 +730,9 @@ fi
%attr
(
755, root, root
)
%
{
_libdir
}
/mysql/plugin/mypluglib.so
%attr
(
755, root, root
)
%
{
_libdir
}
/mysql/plugin/semisync_master.so
*
%attr
(
755, root, root
)
%
{
_libdir
}
/mysql/plugin/semisync_slave.so
*
%attr
(
755, root, root
)
%
{
_libdir
}
/mysql/plugin/debug/mypluglib.so
%attr
(
755, root, root
)
%
{
_libdir
}
/mysql/plugin/debug/semisync_master.so
*
%attr
(
755, root, root
)
%
{
_libdir
}
/mysql/plugin/debug/semisync_slave.so
*
%if %
{
WITH_TCMALLOC
}
%attr
(
755, root, root
)
%
{
_libdir
}
/mysql/%
{
malloc_lib_target
}
...
...
@@ -810,7 +820,6 @@ fi
# ----------------------------------------------------------------------------
%files
-n
MySQL-embedded%
{
product_suffix
}
%defattr
(
-, root, root, 0755
)
%attr
(
755, root, root
)
%
{
_bindir
}
/mysql_embedded
%attr
(
644, root, root
)
%
{
_libdir
}
/mysql/libmysqld.a
%attr
(
644, root, root
)
%
{
_libdir
}
/mysql/libmysqld-debug.a
...
...
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