diff --git a/server/modules/authenticator/CDCPlainAuth/CMakeLists.txt b/server/modules/authenticator/CDCPlainAuth/CMakeLists.txt index f347a2cf1..b344ad099 100644 --- a/server/modules/authenticator/CDCPlainAuth/CMakeLists.txt +++ b/server/modules/authenticator/CDCPlainAuth/CMakeLists.txt @@ -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) diff --git a/server/modules/authenticator/GSSAPI/GSSAPIAuth/CMakeLists.txt b/server/modules/authenticator/GSSAPI/GSSAPIAuth/CMakeLists.txt index e0de53327..e3d287ee0 100644 --- a/server/modules/authenticator/GSSAPI/GSSAPIAuth/CMakeLists.txt +++ b/server/modules/authenticator/GSSAPI/GSSAPIAuth/CMakeLists.txt @@ -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) diff --git a/server/modules/authenticator/GSSAPI/GSSAPIBackendAuth/CMakeLists.txt b/server/modules/authenticator/GSSAPI/GSSAPIBackendAuth/CMakeLists.txt index 33de2f509..4b7577237 100644 --- a/server/modules/authenticator/GSSAPI/GSSAPIBackendAuth/CMakeLists.txt +++ b/server/modules/authenticator/GSSAPI/GSSAPIBackendAuth/CMakeLists.txt @@ -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) diff --git a/server/modules/authenticator/HTTPAuth/CMakeLists.txt b/server/modules/authenticator/HTTPAuth/CMakeLists.txt index 2ec18a4fd..c08a898b6 100644 --- a/server/modules/authenticator/HTTPAuth/CMakeLists.txt +++ b/server/modules/authenticator/HTTPAuth/CMakeLists.txt @@ -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) diff --git a/server/modules/authenticator/MaxAdminAuth/CMakeLists.txt b/server/modules/authenticator/MaxAdminAuth/CMakeLists.txt index d03570a06..10131729e 100644 --- a/server/modules/authenticator/MaxAdminAuth/CMakeLists.txt +++ b/server/modules/authenticator/MaxAdminAuth/CMakeLists.txt @@ -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) diff --git a/server/modules/authenticator/MySQLAuth/CMakeLists.txt b/server/modules/authenticator/MySQLAuth/CMakeLists.txt index cd451d1aa..a4869c8a7 100644 --- a/server/modules/authenticator/MySQLAuth/CMakeLists.txt +++ b/server/modules/authenticator/MySQLAuth/CMakeLists.txt @@ -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() diff --git a/server/modules/authenticator/MySQLBackendAuth/CMakeLists.txt b/server/modules/authenticator/MySQLBackendAuth/CMakeLists.txt index de84e2fb2..e354a69a3 100644 --- a/server/modules/authenticator/MySQLBackendAuth/CMakeLists.txt +++ b/server/modules/authenticator/MySQLBackendAuth/CMakeLists.txt @@ -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) diff --git a/server/modules/authenticator/NullAuthAllow/CMakeLists.txt b/server/modules/authenticator/NullAuthAllow/CMakeLists.txt index d8c23b831..067f8f73e 100644 --- a/server/modules/authenticator/NullAuthAllow/CMakeLists.txt +++ b/server/modules/authenticator/NullAuthAllow/CMakeLists.txt @@ -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) diff --git a/server/modules/authenticator/NullAuthDeny/CMakeLists.txt b/server/modules/authenticator/NullAuthDeny/CMakeLists.txt index d3b37cab2..dfaa89b6c 100644 --- a/server/modules/authenticator/NullAuthDeny/CMakeLists.txt +++ b/server/modules/authenticator/NullAuthDeny/CMakeLists.txt @@ -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) diff --git a/server/modules/authenticator/PAM/PAMAuth/CMakeLists.txt b/server/modules/authenticator/PAM/PAMAuth/CMakeLists.txt index aaf7de9ca..de1481cbb 100644 --- a/server/modules/authenticator/PAM/PAMAuth/CMakeLists.txt +++ b/server/modules/authenticator/PAM/PAMAuth/CMakeLists.txt @@ -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) diff --git a/server/modules/authenticator/PAM/PAMBackendAuth/CMakeLists.txt b/server/modules/authenticator/PAM/PAMBackendAuth/CMakeLists.txt index c1a1b41e0..6ba25c2ec 100644 --- a/server/modules/authenticator/PAM/PAMBackendAuth/CMakeLists.txt +++ b/server/modules/authenticator/PAM/PAMBackendAuth/CMakeLists.txt @@ -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)