Skip to content

Commit ff3bed5

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 d2744d2 commit ff3bed5

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
@@ -387,6 +387,8 @@ IF (ROCKSDB_DYNAMIC_PLUGIN)
387387
ELSE()
388388
MYSQL_ADD_PLUGIN(rocksdb_se ${ROCKSDB_SOURCES} STORAGE_ENGINE DEFAULT
389389
STATIC_ONLY LINK_LIBRARIES ${rocksdb_static_libs})
390+
# to fix linkage error on partition_base
391+
TARGET_LINK_LIBRARIES(rocksdb_se sql_main)
390392
ENDIF()
391393

392394
IF (NOT HAVE_EXTERNAL_ROCKSDB)

0 commit comments

Comments
 (0)