Line 0
Link Here
|
|
|
1 |
--- storage/rocksdb/CMakeLists.txt.orig 2019-05-16 05:06:00 UTC |
2 |
+++ storage/rocksdb/CMakeLists.txt |
3 |
@@ -119,38 +119,11 @@ EXECUTE_PROCESS( |
4 |
# split the list into lines |
5 |
STRING(REGEX MATCHALL "[^\n]+" ROCKSDB_LIB_SOURCES ${SCRIPT_OUTPUT}) |
6 |
|
7 |
-# add bundled compression code |
8 |
-SET(ROCKSDB_LIB_SOURCES |
9 |
- ${ROCKSDB_LIB_SOURCES} |
10 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/lz4/lib/lz4.c |
11 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/lz4/lib/lz4hc.c |
12 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/lz4/lib/lz4frame.c |
13 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common/entropy_common.c |
14 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common/error_private.c |
15 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common/fse_decompress.c |
16 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common/pool.c |
17 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common/threading.c |
18 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common/xxhash.c |
19 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common/zstd_common.c |
20 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/compress/fse_compress.c |
21 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/compress/huf_compress.c |
22 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/compress/zstd_compress.c |
23 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/compress/zstdmt_compress.c |
24 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/decompress/huf_decompress.c |
25 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/decompress/zstd_decompress.c |
26 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/dictBuilder/divsufsort.c |
27 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/dictBuilder/zdict.c |
28 |
-) |
29 |
- |
30 |
INCLUDE_DIRECTORIES( |
31 |
${CMAKE_CURRENT_SOURCE_DIR}/rocksdb |
32 |
${CMAKE_CURRENT_SOURCE_DIR}/rocksdb/include |
33 |
${CMAKE_CURRENT_SOURCE_DIR}/rocksdb/include/rocksdb |
34 |
${CMAKE_CURRENT_SOURCE_DIR}/rocksdb/third-party/gtest-1.7.0/fused-src |
35 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/lz4/lib |
36 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib |
37 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/common |
38 |
- ${CMAKE_CURRENT_SOURCE_DIR}/third_party/zstd/lib/dictBuilder |
39 |
) |
40 |
|
41 |
ADD_DEFINITIONS(-DROCKSDB_PLATFORM_POSIX -DROCKSDB_LIB_IO_POSIX -DZLIB -DLZ4 |
42 |
@@ -183,7 +156,7 @@ SET(ROCKSDB_SOURCES |
43 |
${ROCKSDB_LIB_SOURCES} |
44 |
) |
45 |
|
46 |
-SET(rocksdb_static_libs ${rocksdb_static_libs} ${ZLIB_LIBRARY} "-lrt") |
47 |
+SET(rocksdb_static_libs ${rocksdb_static_libs} ${ZLIB_LIBRARY} "-lrt -llz4 -lzstd") |
48 |
|
49 |
MYSQL_ADD_PLUGIN(rocksdb ${ROCKSDB_SOURCES} STORAGE_ENGINE DEFAULT MODULE_ONLY |
50 |
LINK_LIBRARIES ${rocksdb_static_libs} |