From 11a756a028a4b78cd57e6e3f0f3a3e551d2ddd47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 6 Nov 2018 21:34:28 +0200 Subject: [PATCH] Detect undefined references at link time Instruct the linker to make sure all symbols are resolved at link time. --- server/modules/filter/binlogfilter/CMakeLists.txt | 3 ++- server/modules/filter/cache/CMakeLists.txt | 3 +-- server/modules/filter/ccrfilter/CMakeLists.txt | 2 +- server/modules/filter/comment/CMakeLists.txt | 3 ++- server/modules/filter/dbfwfilter/CMakeLists.txt | 2 +- server/modules/filter/hintfilter/CMakeLists.txt | 2 +- server/modules/filter/insertstream/CMakeLists.txt | 2 +- server/modules/filter/luafilter/CMakeLists.txt | 2 +- server/modules/filter/masking/CMakeLists.txt | 3 +-- server/modules/filter/maxrows/CMakeLists.txt | 3 +-- server/modules/filter/mqfilter/CMakeLists.txt | 4 ++-- server/modules/filter/namedserverfilter/CMakeLists.txt | 2 +- server/modules/filter/nullfilter/CMakeLists.txt | 2 +- server/modules/filter/qlafilter/CMakeLists.txt | 2 +- server/modules/filter/regexfilter/CMakeLists.txt | 2 +- server/modules/filter/tee/CMakeLists.txt | 2 +- server/modules/filter/throttlefilter/CMakeLists.txt | 2 +- server/modules/filter/topfilter/CMakeLists.txt | 2 +- server/modules/filter/tpmfilter/CMakeLists.txt | 2 +- server/modules/monitor/auroramon/CMakeLists.txt | 2 +- server/modules/monitor/csmon/CMakeLists.txt | 2 +- server/modules/monitor/galeramon/CMakeLists.txt | 2 +- server/modules/monitor/grmon/CMakeLists.txt | 2 +- server/modules/monitor/mariadbmon/CMakeLists.txt | 2 +- server/modules/monitor/mmmon/CMakeLists.txt | 2 +- server/modules/monitor/ndbclustermon/CMakeLists.txt | 2 +- server/modules/protocol/CDC/CMakeLists.txt | 2 +- server/modules/protocol/HTTPD/CMakeLists.txt | 2 +- server/modules/protocol/MySQL/CMakeLists.txt | 2 +- server/modules/protocol/maxscaled/CMakeLists.txt | 2 +- server/modules/protocol/telnetd/CMakeLists.txt | 2 +- 31 files changed, 34 insertions(+), 35 deletions(-) diff --git a/server/modules/filter/binlogfilter/CMakeLists.txt b/server/modules/filter/binlogfilter/CMakeLists.txt index d62d608da..71f2415d2 100644 --- a/server/modules/filter/binlogfilter/CMakeLists.txt +++ b/server/modules/filter/binlogfilter/CMakeLists.txt @@ -1,3 +1,4 @@ add_library(binlogfilter SHARED binlogfilter.cc binlogfiltersession.cc) -set_target_properties(binlogfilter PROPERTIES VERSION "1.0.0") +target_link_libraries(binlogfilter maxscale-common mysqlcommon) +set_target_properties(binlogfilter PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(binlogfilter core) diff --git a/server/modules/filter/cache/CMakeLists.txt b/server/modules/filter/cache/CMakeLists.txt index 56b4de875..7813af648 100644 --- a/server/modules/filter/cache/CMakeLists.txt +++ b/server/modules/filter/cache/CMakeLists.txt @@ -18,8 +18,7 @@ if (JANSSON_FOUND) storagereal.cc ) target_link_libraries(cache maxscale-common ${JANSSON_LIBRARIES} mysqlcommon) - set_target_properties(cache PROPERTIES VERSION "1.0.0") - set_target_properties(cache PROPERTIES LINK_FLAGS -Wl,-z,defs) + set_target_properties(cache PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(cache core) add_subdirectory(storage) diff --git a/server/modules/filter/ccrfilter/CMakeLists.txt b/server/modules/filter/ccrfilter/CMakeLists.txt index afcc04f8f..0a325fcce 100644 --- a/server/modules/filter/ccrfilter/CMakeLists.txt +++ b/server/modules/filter/ccrfilter/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(ccrfilter SHARED ccrfilter.cc) target_link_libraries(ccrfilter maxscale-common) -set_target_properties(ccrfilter PROPERTIES VERSION "1.0.0") +set_target_properties(ccrfilter PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(ccrfilter core) diff --git a/server/modules/filter/comment/CMakeLists.txt b/server/modules/filter/comment/CMakeLists.txt index a4bdbfec4..a0246b934 100644 --- a/server/modules/filter/comment/CMakeLists.txt +++ b/server/modules/filter/comment/CMakeLists.txt @@ -1,4 +1,5 @@ add_library(comment SHARED commentfilter.cc commentfiltersession.cc) -set_target_properties(comment PROPERTIES VERSION "1.0.0") +target_link_libraries(comment maxscale-common) +set_target_properties(comment PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(comment core) diff --git a/server/modules/filter/dbfwfilter/CMakeLists.txt b/server/modules/filter/dbfwfilter/CMakeLists.txt index f07c8cfde..49bc6300c 100644 --- a/server/modules/filter/dbfwfilter/CMakeLists.txt +++ b/server/modules/filter/dbfwfilter/CMakeLists.txt @@ -13,7 +13,7 @@ if(BISON_FOUND AND FLEX_FOUND) add_library(dbfwfilter SHARED dbfwfilter.cc) target_link_libraries(dbfwfilter maxscale-common mysqlcommon dbfwfilter-core) - set_target_properties(dbfwfilter PROPERTIES VERSION "1.0.0") + set_target_properties(dbfwfilter PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(dbfwfilter core) # The offline rule check utility diff --git a/server/modules/filter/hintfilter/CMakeLists.txt b/server/modules/filter/hintfilter/CMakeLists.txt index 2b01b8826..f2a0b9fef 100644 --- a/server/modules/filter/hintfilter/CMakeLists.txt +++ b/server/modules/filter/hintfilter/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(hintfilter SHARED hintfilter.cc hintparser.cc) -set_target_properties(hintfilter PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_RPATH}:${MAXSCALE_LIBDIR} VERSION "1.0.0") +set_target_properties(hintfilter PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_RPATH}:${MAXSCALE_LIBDIR} VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) target_link_libraries(hintfilter maxscale-common) install_module(hintfilter core) diff --git a/server/modules/filter/insertstream/CMakeLists.txt b/server/modules/filter/insertstream/CMakeLists.txt index 88044a863..2377d586f 100644 --- a/server/modules/filter/insertstream/CMakeLists.txt +++ b/server/modules/filter/insertstream/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(insertstream SHARED insertstream.cc) target_link_libraries(insertstream maxscale-common mysqlcommon) -set_target_properties(insertstream PROPERTIES VERSION "1.0.0") +set_target_properties(insertstream PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(insertstream core) diff --git a/server/modules/filter/luafilter/CMakeLists.txt b/server/modules/filter/luafilter/CMakeLists.txt index 673eb0b43..54544243d 100644 --- a/server/modules/filter/luafilter/CMakeLists.txt +++ b/server/modules/filter/luafilter/CMakeLists.txt @@ -3,7 +3,7 @@ if (BUILD_LUAFILTER) if(LUA_FOUND) include_directories(${LUA_INCLUDE_DIR}) add_library(luafilter SHARED luafilter.cc) - set_target_properties(luafilter PROPERTIES VERSION "1.0.0") + set_target_properties(luafilter PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) target_link_libraries(luafilter maxscale-common ${LUA_LIBRARIES}) install_module(luafilter experimental) else() diff --git a/server/modules/filter/masking/CMakeLists.txt b/server/modules/filter/masking/CMakeLists.txt index fcd432774..2c05cfee1 100644 --- a/server/modules/filter/masking/CMakeLists.txt +++ b/server/modules/filter/masking/CMakeLists.txt @@ -7,8 +7,7 @@ if (JANSSON_FOUND) ) target_link_libraries(masking maxscale-common ${JANSSON_LIBRARIES}) - set_target_properties(masking PROPERTIES VERSION "1.0.0") - set_target_properties(masking PROPERTIES LINK_FLAGS -Wl,-z,defs) + set_target_properties(masking PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(masking core) if(BUILD_TESTS) diff --git a/server/modules/filter/maxrows/CMakeLists.txt b/server/modules/filter/maxrows/CMakeLists.txt index 256a43303..8596e7dc5 100644 --- a/server/modules/filter/maxrows/CMakeLists.txt +++ b/server/modules/filter/maxrows/CMakeLists.txt @@ -1,5 +1,4 @@ add_library(maxrows SHARED maxrows.cc) target_link_libraries(maxrows maxscale-common) -set_target_properties(maxrows PROPERTIES VERSION "1.0.0") -set_target_properties(maxrows PROPERTIES LINK_FLAGS -Wl,-z,defs) +set_target_properties(maxrows PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(maxrows core) diff --git a/server/modules/filter/mqfilter/CMakeLists.txt b/server/modules/filter/mqfilter/CMakeLists.txt index deac6b43a..72358b515 100644 --- a/server/modules/filter/mqfilter/CMakeLists.txt +++ b/server/modules/filter/mqfilter/CMakeLists.txt @@ -2,9 +2,9 @@ find_package(RabbitMQ) if(RABBITMQ_FOUND) include_directories(${RABBITMQ_HEADERS}) add_library(mqfilter SHARED mqfilter.cc) - target_link_libraries(mqfilter maxscale-common ${RABBITMQ_LIBRARIES}) + target_link_libraries(mqfilter maxscale-common ${RABBITMQ_LIBRARIES} mysqlcommon) add_dependencies(mqfilter pcre2) - set_target_properties(mqfilter PROPERTIES VERSION "1.0.2") + set_target_properties(mqfilter PROPERTIES VERSION "1.0.2" LINK_FLAGS -Wl,-z,defs) install_module(mqfilter core) else() message(WARNING "Could not find librabbitmq, the mqfilter will not be built.") diff --git a/server/modules/filter/namedserverfilter/CMakeLists.txt b/server/modules/filter/namedserverfilter/CMakeLists.txt index 1c253dc51..ee8d6c6f7 100644 --- a/server/modules/filter/namedserverfilter/CMakeLists.txt +++ b/server/modules/filter/namedserverfilter/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(namedserverfilter SHARED namedserverfilter.cc) target_link_libraries(namedserverfilter maxscale-common) -set_target_properties(namedserverfilter PROPERTIES VERSION "1.1.0") +set_target_properties(namedserverfilter PROPERTIES VERSION "1.1.0" LINK_FLAGS -Wl,-z,defs) install_module(namedserverfilter core) diff --git a/server/modules/filter/nullfilter/CMakeLists.txt b/server/modules/filter/nullfilter/CMakeLists.txt index f72e4888b..3110b1ec4 100644 --- a/server/modules/filter/nullfilter/CMakeLists.txt +++ b/server/modules/filter/nullfilter/CMakeLists.txt @@ -3,5 +3,5 @@ add_library(nullfilter SHARED nullfiltersession.cc ) target_link_libraries(nullfilter maxscale-common) -set_target_properties(nullfilter PROPERTIES VERSION "1.0.0") +set_target_properties(nullfilter PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(nullfilter core) diff --git a/server/modules/filter/qlafilter/CMakeLists.txt b/server/modules/filter/qlafilter/CMakeLists.txt index 85246106f..342ddc43f 100644 --- a/server/modules/filter/qlafilter/CMakeLists.txt +++ b/server/modules/filter/qlafilter/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(qlafilter SHARED qlafilter.cc) target_link_libraries(qlafilter maxscale-common) -set_target_properties(qlafilter PROPERTIES VERSION "1.1.1") +set_target_properties(qlafilter PROPERTIES VERSION "1.1.1" LINK_FLAGS -Wl,-z,defs) install_module(qlafilter core) diff --git a/server/modules/filter/regexfilter/CMakeLists.txt b/server/modules/filter/regexfilter/CMakeLists.txt index a6fc514ec..c860b50ec 100644 --- a/server/modules/filter/regexfilter/CMakeLists.txt +++ b/server/modules/filter/regexfilter/CMakeLists.txt @@ -1,5 +1,5 @@ add_library(regexfilter SHARED regexfilter.cc) target_link_libraries(regexfilter maxscale-common) add_dependencies(regexfilter pcre2) -set_target_properties(regexfilter PROPERTIES VERSION "1.1.0") +set_target_properties(regexfilter PROPERTIES VERSION "1.1.0" LINK_FLAGS -Wl,-z,defs) install_module(regexfilter core) diff --git a/server/modules/filter/tee/CMakeLists.txt b/server/modules/filter/tee/CMakeLists.txt index 77da7e78f..74185ef6f 100644 --- a/server/modules/filter/tee/CMakeLists.txt +++ b/server/modules/filter/tee/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(tee SHARED tee.cc teesession.cc) target_link_libraries(tee maxscale-common mysqlcommon) -set_target_properties(tee PROPERTIES VERSION "1.0.0") +set_target_properties(tee PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(tee core) diff --git a/server/modules/filter/throttlefilter/CMakeLists.txt b/server/modules/filter/throttlefilter/CMakeLists.txt index 70cd5870e..156905d99 100644 --- a/server/modules/filter/throttlefilter/CMakeLists.txt +++ b/server/modules/filter/throttlefilter/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(throttlefilter SHARED throttlefilter.cc throttlesession.cc) target_link_libraries(throttlefilter maxscale-common mysqlcommon) -set_target_properties(throttlefilter PROPERTIES VERSION "1.0.0") +set_target_properties(throttlefilter PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(throttlefilter core) diff --git a/server/modules/filter/topfilter/CMakeLists.txt b/server/modules/filter/topfilter/CMakeLists.txt index 39900bd5e..d9eecd8cb 100644 --- a/server/modules/filter/topfilter/CMakeLists.txt +++ b/server/modules/filter/topfilter/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(topfilter SHARED topfilter.cc) target_link_libraries(topfilter maxscale-common) -set_target_properties(topfilter PROPERTIES VERSION "1.0.1") +set_target_properties(topfilter PROPERTIES VERSION "1.0.1" LINK_FLAGS -Wl,-z,defs) install_module(topfilter core) diff --git a/server/modules/filter/tpmfilter/CMakeLists.txt b/server/modules/filter/tpmfilter/CMakeLists.txt index 5ac7490ff..c563af43f 100644 --- a/server/modules/filter/tpmfilter/CMakeLists.txt +++ b/server/modules/filter/tpmfilter/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(tpmfilter SHARED tpmfilter.cc) target_link_libraries(tpmfilter maxscale-common) -set_target_properties(tpmfilter PROPERTIES VERSION "1.0.0") +set_target_properties(tpmfilter PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(tpmfilter experimental) diff --git a/server/modules/monitor/auroramon/CMakeLists.txt b/server/modules/monitor/auroramon/CMakeLists.txt index 0b47d833c..8cc0ab071 100644 --- a/server/modules/monitor/auroramon/CMakeLists.txt +++ b/server/modules/monitor/auroramon/CMakeLists.txt @@ -1,5 +1,5 @@ add_library(auroramon SHARED auroramon.cc) target_link_libraries(auroramon maxscale-common) add_dependencies(auroramon pcre2) -set_target_properties(auroramon PROPERTIES VERSION "1.0.0") +set_target_properties(auroramon PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(auroramon core) diff --git a/server/modules/monitor/csmon/CMakeLists.txt b/server/modules/monitor/csmon/CMakeLists.txt index 412e0b34b..8a8e974ad 100644 --- a/server/modules/monitor/csmon/CMakeLists.txt +++ b/server/modules/monitor/csmon/CMakeLists.txt @@ -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) diff --git a/server/modules/monitor/galeramon/CMakeLists.txt b/server/modules/monitor/galeramon/CMakeLists.txt index fe2ada2fd..c6924ac6c 100644 --- a/server/modules/monitor/galeramon/CMakeLists.txt +++ b/server/modules/monitor/galeramon/CMakeLists.txt @@ -1,5 +1,5 @@ add_library(galeramon SHARED galeramon.cc) target_link_libraries(galeramon maxscale-common) add_dependencies(galeramon pcre2) -set_target_properties(galeramon PROPERTIES VERSION "2.0.0") +set_target_properties(galeramon PROPERTIES VERSION "2.0.0" LINK_FLAGS -Wl,-z,defs) install_module(galeramon core) diff --git a/server/modules/monitor/grmon/CMakeLists.txt b/server/modules/monitor/grmon/CMakeLists.txt index 3b828c592..857f87fa9 100644 --- a/server/modules/monitor/grmon/CMakeLists.txt +++ b/server/modules/monitor/grmon/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(grmon SHARED grmon.cc) target_link_libraries(grmon maxscale-common) -set_target_properties(grmon PROPERTIES VERSION "1.0.0") +set_target_properties(grmon PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(grmon experimental) diff --git a/server/modules/monitor/mariadbmon/CMakeLists.txt b/server/modules/monitor/mariadbmon/CMakeLists.txt index 7dce863fc..0f2628c58 100644 --- a/server/modules/monitor/mariadbmon/CMakeLists.txt +++ b/server/modules/monitor/mariadbmon/CMakeLists.txt @@ -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) diff --git a/server/modules/monitor/mmmon/CMakeLists.txt b/server/modules/monitor/mmmon/CMakeLists.txt index a50cd99c6..e7d9e3018 100644 --- a/server/modules/monitor/mmmon/CMakeLists.txt +++ b/server/modules/monitor/mmmon/CMakeLists.txt @@ -1,5 +1,5 @@ add_library(mmmon SHARED mmmon.cc) target_link_libraries(mmmon maxscale-common) add_dependencies(mmmon pcre2) -set_target_properties(mmmon PROPERTIES VERSION "1.1.1") +set_target_properties(mmmon PROPERTIES VERSION "1.1.1" LINK_FLAGS -Wl,-z,defs) install_module(mmmon core) diff --git a/server/modules/monitor/ndbclustermon/CMakeLists.txt b/server/modules/monitor/ndbclustermon/CMakeLists.txt index 6b8428da7..8d95d747b 100644 --- a/server/modules/monitor/ndbclustermon/CMakeLists.txt +++ b/server/modules/monitor/ndbclustermon/CMakeLists.txt @@ -1,5 +1,5 @@ add_library(ndbclustermon SHARED ndbclustermon.cc) target_link_libraries(ndbclustermon maxscale-common) add_dependencies(ndbclustermon pcre2) -set_target_properties(ndbclustermon PROPERTIES VERSION "2.1.0") +set_target_properties(ndbclustermon PROPERTIES VERSION "2.1.0" LINK_FLAGS -Wl,-z,defs) install_module(ndbclustermon core) diff --git a/server/modules/protocol/CDC/CMakeLists.txt b/server/modules/protocol/CDC/CMakeLists.txt index 0a00ceb93..87ee6541a 100644 --- a/server/modules/protocol/CDC/CMakeLists.txt +++ b/server/modules/protocol/CDC/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(cdc SHARED cdc.cc) target_link_libraries(cdc maxscale-common) -set_target_properties(cdc PROPERTIES VERSION "1.0.1") +set_target_properties(cdc PROPERTIES VERSION "1.0.1" LINK_FLAGS -Wl,-z,defs) install_module(cdc core) diff --git a/server/modules/protocol/HTTPD/CMakeLists.txt b/server/modules/protocol/HTTPD/CMakeLists.txt index 891f31171..ffba326cf 100644 --- a/server/modules/protocol/HTTPD/CMakeLists.txt +++ b/server/modules/protocol/HTTPD/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(httpd SHARED httpd.cc) target_link_libraries(httpd maxscale-common) -set_target_properties(httpd PROPERTIES VERSION "1.0.1") +set_target_properties(httpd PROPERTIES VERSION "1.0.1" LINK_FLAGS -Wl,-z,defs) install_module(httpd core) diff --git a/server/modules/protocol/MySQL/CMakeLists.txt b/server/modules/protocol/MySQL/CMakeLists.txt index 0d435b098..e47ad3a37 100644 --- a/server/modules/protocol/MySQL/CMakeLists.txt +++ b/server/modules/protocol/MySQL/CMakeLists.txt @@ -1,6 +1,6 @@ add_library(mysqlcommon SHARED mysql_common.cc mariadb_client.cc rwbackend.cc) target_link_libraries(mysqlcommon maxscale-common) -set_target_properties(mysqlcommon PROPERTIES VERSION "2.0.0") +set_target_properties(mysqlcommon PROPERTIES VERSION "2.0.0" LINK_FLAGS -Wl,-z,defs) install_module(mysqlcommon core) add_subdirectory(mariadbbackend) diff --git a/server/modules/protocol/maxscaled/CMakeLists.txt b/server/modules/protocol/maxscaled/CMakeLists.txt index 1fc12933a..9b89f2eac 100644 --- a/server/modules/protocol/maxscaled/CMakeLists.txt +++ b/server/modules/protocol/maxscaled/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(maxscaled SHARED maxscaled.cc) target_link_libraries(maxscaled maxscale-common) -set_target_properties(maxscaled PROPERTIES VERSION "1.0.0") +set_target_properties(maxscaled PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs) install_module(maxscaled core) diff --git a/server/modules/protocol/telnetd/CMakeLists.txt b/server/modules/protocol/telnetd/CMakeLists.txt index ae27dce0f..8327061bd 100644 --- a/server/modules/protocol/telnetd/CMakeLists.txt +++ b/server/modules/protocol/telnetd/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(telnetd SHARED telnetd.cc) target_link_libraries(telnetd maxscale-common) -set_target_properties(telnetd PROPERTIES VERSION "1.0.1") +set_target_properties(telnetd PROPERTIES VERSION "1.0.1" LINK_FLAGS -Wl,-z,defs) install_module(telnetd core)