Skip to content

Commit fb33d78

Browse files
Yoshinori Matsunobuinikep
authored andcommitted
Fix static MyRocks library linkage error with gcc
Upstream commit ID: facebook/mysql-5.6@c75bf30 PS-8755: Merge percona-202301 (https://jira.percona.com/browse/PS-8755) Summary: Commit 8a8708b71da379daea13fcae90e3bb1af5d60f32 (MyRocks to support both dynamic and static plugins) caused compiler error on Ubuntu 22.04 with gcc (Issue percona#1262). This diff fixes it. squash with: D41313174 Reviewed By: lth Differential Revision: D42646920 fbshipit-source-id: 16e77bc5b0cbcc464be7ce587b37da78b4b3de8f
1 parent 6563056 commit fb33d78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

storage/rocksdb/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ IF (ROCKSDB_DYNAMIC_PLUGIN)
323323
ELSE()
324324
MYSQL_ADD_PLUGIN(rocksdb_se ${ROCKSDB_SOURCES} STORAGE_ENGINE DEFAULT
325325
STATIC_ONLY LINK_LIBRARIES ${rocksdb_static_libs})
326+
# to fix linkage error on partition_base
327+
TARGET_LINK_LIBRARIES(rocksdb_se sql_main)
326328
ENDIF()
327329

328330
IF (NOT HAVE_EXTERNAL_ROCKSDB)

0 commit comments

Comments
 (0)