Detect undefined references at link time

Instruct the linker to make sure all symbols are resolved at link time.
This commit is contained in:
Markus Mäkelä
2018-11-06 21:34:28 +02:00
parent 774e9d1efb
commit 11a756a028
31 changed files with 34 additions and 35 deletions

View File

@ -2,6 +2,6 @@ add_library(mariadbmon SHARED mariadbmon.cc mariadbserver.cc cluster_manipulatio
mariadbmon_common.cc server_utils.cc)
target_link_libraries(mariadbmon maxscale-common)
add_dependencies(mariadbmon pcre2)
set_target_properties(mariadbmon PROPERTIES VERSION "1.4.0")
set_target_properties(mariadbmon PROPERTIES VERSION "1.4.0" LINK_FLAGS -Wl,-z,defs)
install_module(mariadbmon core)
add_subdirectory(test)