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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
288f1ce1
Commit
288f1ce1
authored
Feb 04, 2014
by
Tor Didriksen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#18123048 ENABLE BUILD OF SHARED LIBMYSQLD ON LINUX
Added a new option: WITH_EMBEDDED_SHARED_LIBRARY
parent
82d0ac9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
libmysqld/CMakeLists.txt
libmysqld/CMakeLists.txt
+35
-1
No files found.
libmysqld/CMakeLists.txt
View file @
288f1ce1
# Copyright (c) 2006, 201
1
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2006, 201
4
, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -143,3 +143,37 @@ IF(MSVC AND NOT DISABLE_SHARED)
MERGE_LIBRARIES
(
libmysqld SHARED
${
LIBS
}
EXPORTS
${
CLIENT_API_FUNCTIONS
}
COMPONENT Embedded
)
ENDIF
()
OPTION
(
WITH_EMBEDDED_SHARED_LIBRARY
"Generate shared version of embedded library (in addition to the static one)"
OFF
)
IF
(
WITH_EMBEDDED_SHARED_LIBRARY
)
MERGE_LIBRARIES
(
libmysqld SHARED
mysqlserver
EXPORTS
${
CLIENT_API_FUNCTIONS
}
OUTPUT_NAME
"mysqld"
COMPONENT Embedded
)
SET_TARGET_PROPERTIES
(
libmysqld PROPERTIES
VERSION
"
${
SHARED_LIB_MAJOR_VERSION
}
.
${
SHARED_LIB_MINOR_VERSION
}
.0"
SOVERSION
"
${
SHARED_LIB_MAJOR_VERSION
}
"
)
GET_TARGET_PROPERTY
(
libmysqld_link_flags libmysqld LINK_FLAGS
)
IF
(
NOT libmysqld_link_flag
)
SET
(
libmysqld_link_flags
)
ENDIF
()
SET
(
libmysqld_link_flags
"
${
CMAKE_SHARED_LIBRARY_C_FLAGS
}
${
libmysqld_link_flags
}
"
)
SET_TARGET_PROPERTIES
(
libmysqld
PROPERTIES LINK_FLAGS
"
${
libmysqld_link_flags
}
"
)
IF
(
LINK_FLAG_NO_UNDEFINED
)
SET
(
libmysqld_link_flags
"
${
libmysqld_link_flags
}
${
LINK_FLAG_NO_UNDEFINED
}
"
)
SET_TARGET_PROPERTIES
(
libmysqld
PROPERTIES LINK_FLAGS
"
${
libmysqld_link_flags
}
"
)
ENDIF
()
SET_TARGET_PROPERTIES
(
libmysqld PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
SET_TARGET_PROPERTIES
(
mysqlserver PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
ENDIF
()
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