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)
ENDIF()
SET(TOKUDB_SOURCES ha_tokudb.cc)
MYSQL_ADD_PLUGIN(tokudb ${TOKUDB_SOURCES} STORAGE_ENGINE MODULE_ONLY
LINK_LIBRARIES ${ZLIB_LIBRARY} stdc++)
MYSQL_ADD_PLUGIN(tokudb ${TOKUDB_SOURCES} STORAGE_ENGINE MODULE_ONLY)
IF(NOT TARGET tokudb)
RETURN()
......@@ -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/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_RELWITHDEBINFO "${CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO} -flto -fuse-linker-plugin")
......
......@@ -91,6 +91,7 @@ PATENT RIGHTS GRANT:
/* Dump the log from stdin to stdout. */
#include <my_config.h>
#include "ft/log_header.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