summaryrefslogtreecommitdiff
path: root/zlib
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-07-08 12:08:00 +0200
committerSergei Golubchik <serg@mariadb.org>2019-07-10 08:58:28 +0200
commita43edf73f38bb7ce6f20f7dd25240296108ae2d0 (patch)
treef092e81e47bc6cd6e2905f3806d20fe82bad336d /zlib
parent5d04391f58b404760c5254c8722c2da732ce2630 (diff)
downloadmariadb-git-a43edf73f38bb7ce6f20f7dd25240296108ae2d0.tar.gz
restore RESTRICT_SYMBOL_EXPORTS(zlib)
that was lost in c54271723c6 remove zlib/libxml2 workaround in CONNECT
Diffstat (limited to 'zlib')
-rw-r--r--zlib/CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/zlib/CMakeLists.txt b/zlib/CMakeLists.txt
index 5d58f9a42b6..f654f98bfc4 100644
--- a/zlib/CMakeLists.txt
+++ b/zlib/CMakeLists.txt
@@ -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()