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
8fd654ce
Commit
8fd654ce
authored
Mar 14, 2020
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-21943 reduce the binary tarball size
strip all client binaries (that is, not mysqld) in bintars
parent
47e220a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
cmake/build_configurations/mysql_release.cmake
cmake/build_configurations/mysql_release.cmake
+1
-0
cmake/mysql_add_executable.cmake
cmake/mysql_add_executable.cmake
+7
-0
No files found.
cmake/build_configurations/mysql_release.cmake
View file @
8fd654ce
...
...
@@ -108,6 +108,7 @@ ELSE()
SET
(
WITH_ZLIB bundled CACHE STRING
""
)
SET
(
WITH_JEMALLOC static CACHE STRING
""
)
SET
(
PLUGIN_AUTH_SOCKET STATIC CACHE STRING
""
)
SET
(
WITH_STRIPPED_CLIENT ON CACHE BOOL
"Strip all client binaries"
)
ENDIF
()
IF
(
NOT COMPILATION_COMMENT
)
...
...
cmake/mysql_add_executable.cmake
View file @
8fd654ce
...
...
@@ -79,7 +79,14 @@ FUNCTION (MYSQL_ADD_EXECUTABLE)
IF
(
COMP MATCHES
${
SKIP_COMPONENTS
}
)
RETURN
()
ENDIF
()
IF
(
WITH_STRIPPED_CLIENT AND NOT target STREQUAL mysqld
)
INSTALL
(
CODE
"SET(CMAKE_INSTALL_DO_STRIP 1)"
${
COMP
}
)
SET
(
reset_strip ON
)
ENDIF
()
MYSQL_INSTALL_TARGETS
(
${
target
}
DESTINATION
${
ARG_DESTINATION
}
COMPONENT
${
COMP
}
)
IF
(
reset_strip
)
INSTALL
(
CODE
"SET(CMAKE_INSTALL_DO_STRIP 0)"
${
COMP
}
)
ENDIF
()
ENDIF
()
# create mariadb named symlink
...
...
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