From 247e558ffa37acbcbe8ac1e0c7067d330bd36058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 8 Mar 2019 09:51:49 +0200 Subject: [PATCH] Fix tls-model exposure to other modules The flag was propagated to other modules that depend on it. --- server/core/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/CMakeLists.txt b/server/core/CMakeLists.txt index 25c221525..9a4e6f2f7 100644 --- a/server/core/CMakeLists.txt +++ b/server/core/CMakeLists.txt @@ -83,7 +83,7 @@ endif() # Using initial-exec instead of the default global-dynamic tls-model # reduces the cost of using thread-local variables in dynamic libraries. -target_compile_options(maxscale-common PUBLIC "-ftls-model=initial-exec") +target_compile_options(maxscale-common PRIVATE "-ftls-model=initial-exec") add_dependencies(maxscale-common pcre2 connector-c libmicrohttpd jansson maxbase) set_target_properties(maxscale-common PROPERTIES VERSION "1.0.0")