Link binlog router with embedded lib.
Binlog router uses my_uuid_init and my_uuid, which are non-public functions available in the embedded library. Consequently, blr must currently be linked with the embedded library. A custom implementation of these functions should be provided, in order to break that dependency.
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
add_library(binlogrouter SHARED blr.c blr_master.c blr_cache.c blr_slave.c blr_file.c)
|
||||
set_target_properties(binlogrouter PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_RPATH}:${MAXSCALE_LIBDIR} VERSION "2.0.0")
|
||||
target_link_libraries(binlogrouter maxscale-common)
|
||||
# libbinlogrouter refers to my_uuid_init and my_uuid. They are non-public functions and
|
||||
# should not be used. They are found only from the embedded lib.
|
||||
target_link_libraries(binlogrouter maxscale-common ${MYSQL_EMBEDDED_LIBRARIES})
|
||||
install(TARGETS binlogrouter DESTINATION ${MAXSCALE_LIBDIR})
|
||||
|
||||
add_executable(maxbinlogcheck maxbinlogcheck.c blr_file.c blr_cache.c blr_master.c blr_slave.c blr.c)
|
||||
# maxbinlogcheck refers to my_uuid_init and my_uuin. They are non-public functions and
|
||||
# maxbinlogcheck refers to my_uuid_init and my_uuid. They are non-public functions and
|
||||
# should not be used. They are found only from the embedded lib.
|
||||
target_link_libraries(maxbinlogcheck maxscale-common ${MYSQL_EMBEDDED_LIBRARIES})
|
||||
|
||||
|
Reference in New Issue
Block a user