Detect undefined references at link time
Instruct the linker to make sure all symbols are resolved at link time.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
add_library(csmon SHARED csmon.cc)
|
||||
target_link_libraries(csmon maxscale-common)
|
||||
set_target_properties(csmon PROPERTIES VERSION "1.0.0")
|
||||
set_target_properties(csmon PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
|
||||
install_module(csmon core)
|
||||
|
||||
Reference in New Issue
Block a user