diff --git a/server/modules/routing/binlog/CMakeLists.txt b/server/modules/routing/binlog/CMakeLists.txt index 5a3e54a0a..2250ca0ea 100644 --- a/server/modules/routing/binlog/CMakeLists.txt +++ b/server/modules/routing/binlog/CMakeLists.txt @@ -1,5 +1,6 @@ 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") +set_target_properties(binlogrouter PROPERTIES LINK_FLAGS -Wl,-z,defs) # 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})