Resolve authenticator symbols at compile time
Resolving the symbols at compile time prevents runtime problems.
This commit is contained in:
parent
cca7757090
commit
00c107e051
@ -1,4 +1,4 @@
|
||||
add_library(cdcplainauth SHARED cdc_plain_auth.cc)
|
||||
target_link_libraries(cdcplainauth maxscale-common)
|
||||
set_target_properties(cdcplainauth PROPERTIES VERSION "1.0.0")
|
||||
set_target_properties(cdcplainauth PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
|
||||
install_module(cdcplainauth core)
|
||||
|
@ -1,4 +1,4 @@
|
||||
add_library(gssapiauth SHARED gssapi_auth.cc ../gssapi_auth_common.cc)
|
||||
target_link_libraries(gssapiauth maxscale-common ${GSSAPI_LIBS} ${SQLITE_LIBRARIES} mysqlcommon)
|
||||
set_target_properties(gssapiauth PROPERTIES VERSION "1.0.0")
|
||||
set_target_properties(gssapiauth PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
|
||||
install_module(gssapiauth core)
|
||||
|
@ -1,4 +1,4 @@
|
||||
add_library(gssapibackendauth SHARED gssapi_backend_auth.cc ../gssapi_auth_common.cc)
|
||||
target_link_libraries(gssapibackendauth maxscale-common ${GSSAPI_LIBS} mysqlcommon)
|
||||
set_target_properties(gssapibackendauth PROPERTIES VERSION "1.0.0")
|
||||
set_target_properties(gssapibackendauth PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
|
||||
install_module(gssapibackendauth core)
|
||||
|
@ -1,4 +1,4 @@
|
||||
add_library(httpauth SHARED http_auth.cc)
|
||||
target_link_libraries(httpauth maxscale-common)
|
||||
set_target_properties(httpauth PROPERTIES VERSION "1.0.0")
|
||||
set_target_properties(httpauth PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
|
||||
install_module(httpauth core)
|
||||
|
@ -1,4 +1,4 @@
|
||||
add_library(maxadminauth SHARED max_admin_auth.cc)
|
||||
target_link_libraries(maxadminauth maxscale-common)
|
||||
set_target_properties(maxadminauth PROPERTIES VERSION "1.0.0")
|
||||
set_target_properties(maxadminauth PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
|
||||
install_module(maxadminauth core)
|
||||
|
@ -3,6 +3,6 @@ if(SQLITE_VERSION VERSION_LESS 3.3)
|
||||
else()
|
||||
add_library(mysqlauth SHARED mysql_auth.cc dbusers.cc)
|
||||
target_link_libraries(mysqlauth maxscale-common mysqlcommon)
|
||||
set_target_properties(mysqlauth PROPERTIES VERSION "1.0.0")
|
||||
set_target_properties(mysqlauth PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
|
||||
install_module(mysqlauth core)
|
||||
endif()
|
||||
|
@ -1,4 +1,4 @@
|
||||
add_library(mysqlbackendauth SHARED mysql_backend_auth.cc)
|
||||
target_link_libraries(mysqlbackendauth maxscale-common mysqlcommon)
|
||||
set_target_properties(mysqlbackendauth PROPERTIES VERSION "1.0.0")
|
||||
set_target_properties(mysqlbackendauth PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
|
||||
install_module(mysqlbackendauth core)
|
||||
|
@ -1,4 +1,4 @@
|
||||
add_library(nullauthallow SHARED null_auth_allow.cc)
|
||||
target_link_libraries(nullauthallow maxscale-common mysqlcommon)
|
||||
set_target_properties(nullauthallow PROPERTIES VERSION "1.0.0")
|
||||
set_target_properties(nullauthallow PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
|
||||
install_module(nullauthallow core)
|
||||
|
@ -1,4 +1,4 @@
|
||||
add_library(nullauthdeny SHARED null_auth_deny.cc)
|
||||
target_link_libraries(nullauthdeny maxscale-common)
|
||||
set_target_properties(nullauthdeny PROPERTIES VERSION "1.0.0")
|
||||
set_target_properties(nullauthdeny PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
|
||||
install_module(nullauthdeny core)
|
||||
|
@ -1,4 +1,4 @@
|
||||
add_library(pamauth SHARED pam_auth.cc ../pam_auth_common.cc pam_client_session.cc pam_instance.cc)
|
||||
target_link_libraries(pamauth maxscale-common ${PAM_LIBRARIES} ${SQLITE_LIBRARIES} mysqlcommon)
|
||||
set_target_properties(pamauth PROPERTIES VERSION "1.0.0")
|
||||
set_target_properties(pamauth PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
|
||||
install_module(pamauth core)
|
||||
|
@ -1,4 +1,4 @@
|
||||
add_library(pambackendauth SHARED pam_backend_auth.cc ../pam_auth_common.cc pam_backend_session.cc)
|
||||
target_link_libraries(pambackendauth maxscale-common mysqlcommon ${SQLITE_LIBRARIES})
|
||||
set_target_properties(pambackendauth PROPERTIES VERSION "1.0.0")
|
||||
set_target_properties(pambackendauth PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
|
||||
install_module(pambackendauth core)
|
||||
|
Loading…
x
Reference in New Issue
Block a user