Skip to content

Commit 89f3555

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 fbadcde commit 89f3555

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
@@ -330,6 +330,8 @@ IF (ROCKSDB_DYNAMIC_PLUGIN)
330330
ELSE()
331331
MYSQL_ADD_PLUGIN(rocksdb_se ${ROCKSDB_SOURCES} STORAGE_ENGINE DEFAULT
332332
STATIC_ONLY LINK_LIBRARIES ${rocksdb_static_libs})
333+
# to fix linkage error on partition_base
334+
TARGET_LINK_LIBRARIES(rocksdb_se sql_main)
333335
ENDIF()
334336

335337
IF (NOT HAVE_EXTERNAL_ROCKSDB)

0 commit comments

Comments
 (0)