Commit 33ab30df authored by Sergei Golubchik's avatar Sergei Golubchik

fix tokudb compilation with bundled zlib

parent d4017d49
...@@ -14,8 +14,7 @@ IF(NOT TOKUDB_OK) ...@@ -14,8 +14,7 @@ IF(NOT TOKUDB_OK)
ENDIF() ENDIF()
SET(TOKUDB_SOURCES ha_tokudb.cc) SET(TOKUDB_SOURCES ha_tokudb.cc)
MYSQL_ADD_PLUGIN(tokudb ${TOKUDB_SOURCES} STORAGE_ENGINE MODULE_ONLY MYSQL_ADD_PLUGIN(tokudb ${TOKUDB_SOURCES} STORAGE_ENGINE MODULE_ONLY)
LINK_LIBRARIES ${ZLIB_LIBRARY} stdc++)
IF(NOT TARGET tokudb) IF(NOT TARGET tokudb)
RETURN() RETURN()
...@@ -85,7 +84,8 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/ft-index) ...@@ -85,7 +84,8 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/ft-index)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/ft-index/buildheader) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/ft-index/buildheader)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/ft-index/portability) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/ft-index/portability)
TARGET_LINK_LIBRARIES(tokudb tokufractaltree_static tokuportability_static) TARGET_LINK_LIBRARIES(tokudb tokufractaltree_static tokuportability_static
${ZLIB_LIBRARY} stdc++)
SET(CMAKE_MODULE_LINKER_FLAGS_RELEASE "${CMAKE_MODULE_LINKER_FLAGS_RELEASE} -flto -fuse-linker-plugin") SET(CMAKE_MODULE_LINKER_FLAGS_RELEASE "${CMAKE_MODULE_LINKER_FLAGS_RELEASE} -flto -fuse-linker-plugin")
SET(CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO} -flto -fuse-linker-plugin") SET(CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO} -flto -fuse-linker-plugin")
......
...@@ -91,6 +91,7 @@ PATENT RIGHTS GRANT: ...@@ -91,6 +91,7 @@ PATENT RIGHTS GRANT:
/* Dump the log from stdin to stdout. */ /* Dump the log from stdin to stdout. */
#include <my_config.h>
#include "ft/log_header.h" #include "ft/log_header.h"
#include "ft/logger/logger.h" #include "ft/logger/logger.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment