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
a43edf73
Commit
a43edf73
authored
5 years ago
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore RESTRICT_SYMBOL_EXPORTS(zlib)
that was lost in
c5427172
remove zlib/libxml2 workaround in CONNECT
parent
5d04391f
Branches unavailable
Tags unavailable
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
12 deletions
+2
-12
storage/connect/CMakeLists.txt
storage/connect/CMakeLists.txt
+0
-9
zlib/CMakeLists.txt
zlib/CMakeLists.txt
+2
-3
No files found.
storage/connect/CMakeLists.txt
View file @
a43edf73
...
...
@@ -114,7 +114,6 @@ IF(CONNECT_WITH_LIBXML2)
FIND_PACKAGE
(
LibXml2
)
IF
(
LIBXML2_FOUND
)
INCLUDE_DIRECTORIES
(
${
LIBXML2_INCLUDE_DIR
}
)
SET
(
ZLIB_LIBRARY
"z"
)
# see ZLIB_INCLUDE_DIR below
SET
(
XML_LIBRARY
${
LIBXML2_LIBRARIES
}
)
SET
(
CONNECT_SOURCES
${
CONNECT_SOURCES
}
libdoc.cpp libdoc.h
)
add_definitions
(
-DLIBXML2_SUPPORT
)
...
...
@@ -333,14 +332,6 @@ IF(NOT TARGET connect)
RETURN
()
ENDIF
()
# Don't link with bundled zlib and systel libxml2 at the same time.
# System libxml2 uses system zlib, might conflict with the bundled one.
IF
(
XML_LIBRARY AND BUILD_BUNDLED_ZLIB
)
GET_PROPERTY
(
INCS TARGET connect PROPERTY INCLUDE_DIRECTORIES
)
LIST
(
REMOVE_ITEM INCS
${
ZLIB_INCLUDE_DIR
}
)
SET_PROPERTY
(
TARGET connect PROPERTY INCLUDE_DIRECTORIES
${
INCS
}
)
ENDIF
()
IF
(
WIN32
)
IF
(
libmongoc-1.0_FOUND
)
SET_TARGET_PROPERTIES
(
connect PROPERTIES LINK_FLAGS
...
...
This diff is collapsed.
Click to expand it.
zlib/CMakeLists.txt
View file @
a43edf73
...
...
@@ -124,6 +124,8 @@ string(REGEX REPLACE ".*#define[ \t]+ZLIB_VERSION[ \t]+\"([-0-9A-Za-z.]+)\".*"
ADD_CONVENIENCE_LIBRARY
(
zlib STATIC
${
ZLIB_SRCS
}
${
ZLIB_PUBLIC_HDRS
}
${
ZLIB_PRIVATE_HDRS
}
)
RESTRICT_SYMBOL_EXPORTS
(
zlib
)
if
(
NOT CYGWIN
)
# This property causes shared libraries on Linux to have the full version
...
...
@@ -142,7 +144,4 @@ if(CMAKE_SYSTEM_NAME MATCHES "SunOS")
elseif
(
UNIX
)
# On unix-like platforms the library is almost always called libz
set_target_properties
(
zlib PROPERTIES OUTPUT_NAME z
)
if
(
NOT APPLE
)
set_target_properties
(
zlib PROPERTIES LINK_FLAGS
"-Wl,--version-script,
\"
${
CMAKE_CURRENT_SOURCE_DIR
}
/zlib.map
\"
"
)
endif
()
endif
()
This diff is collapsed.
Click to expand it.
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