Skip to content

Commit 7c0cf20

Browse files
committed
update libmarias3
1 parent 7bb32cd commit 7c0cf20

File tree

2 files changed

+1
-37
lines changed

2 files changed

+1
-37
lines changed

storage/maria/CMakeLists.txt

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -104,33 +104,6 @@ OPTION(USE_ARIA_FOR_TMP_TABLES "Use Aria for temporary tables" ON)
104104
# S3
105105
#
106106
INCLUDE (CheckIncludeFiles)
107-
INCLUDE (CheckCSourceRuns)
108-
109-
SET(CURL_SSL_TEST_SOURCE "\n
110-
#include <curl/curl.h>\n
111-
#include <stdlib.h>\n
112-
#include <string.h>\n
113-
int main(void)\n
114-
{\n
115-
curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);\n
116-
\n
117-
if (data->ssl_version)\n
118-
{\n
119-
if (strncmp(data->ssl_version, \"OpenSSL\", 7) != 0)\n
120-
{\n
121-
return EXIT_SUCCESS;\n
122-
}\n
123-
if (data->ssl_version[8] == '0')\n
124-
{\n
125-
return EXIT_FAILURE;\n
126-
}\n
127-
if ((data->ssl_version[8] == '1') && (data->ssl_version[10] == '0'))\n
128-
{\n
129-
return EXIT_FAILURE;\n
130-
}\n
131-
}\n
132-
return EXIT_SUCCESS;\n
133-
}")
134107

135108
SET(S3_SOURCES ha_s3.cc s3_func.c
136109
libmarias3/src/debug.c libmarias3/src/error.c libmarias3/src/marias3.c
@@ -148,21 +121,12 @@ IF (CURL_FOUND)
148121
ENDIF()
149122

150123
IF(TARGET s3)
151-
SET(CMAKE_REQUIRED_LIBRARIES curl)
152-
CHECK_C_SOURCE_RUNS("${CURL_SSL_TEST_SOURCE}" FOUND_SAFE_CURL_SSL)
153-
UNSET(CMAKE_REQUIRED_LIBRARIES)
154124
MYSQL_ADD_EXECUTABLE(aria_s3_copy aria_s3_copy.cc COMPONENT Server)
155125
TARGET_LINK_LIBRARIES(aria_s3_copy s3)
156126

157127
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/libmarias3)
158128

159129
ADD_DEFINITIONS(-DWITH_S3_STORAGE_ENGINE)
160-
IF (FOUND_SAFE_CURL_SSL)
161-
MESSAGE(STATUS "Found thread safe curl ssl")
162-
ELSE ()
163-
MESSAGE(STATUS "Found thread unsafe curl ssl, locks added")
164-
ADD_DEFINITIONS(-DHAVE_CURL_OPENSSL_UNSAFE)
165-
ENDIF ()
166130

167131
TARGET_LINK_LIBRARIES(aria s3)
168132
ENDIF()

0 commit comments

Comments
 (0)