Resolve all symbols for routers at link time
The routers should not have undefied references. Exceptions to this are the modules that use the maxscale_shutdown() function defined in gateway.cc.
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
add_library(maxinfo SHARED maxinfo.cc maxinfo_parse.cc maxinfo_error.cc maxinfo_exec.cc)
|
||||
set_target_properties(maxinfo PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_RPATH}:${MAXSCALE_LIBDIR} VERSION "1.0.0")
|
||||
# Can't add `LINK_FLAGS -Wl,-z,defs` as the module uses maxscale_shutdown() which is defined in gateway.cc
|
||||
target_link_libraries(maxinfo maxscale-common)
|
||||
install_module(maxinfo core)
|
||||
|
Reference in New Issue
Block a user