Fix tls-model exposure to other modules

The flag was propagated to other modules that depend on it.
This commit is contained in:
Markus Mäkelä 2019-03-08 09:51:49 +02:00
parent 5005facfb1
commit 247e558ffa
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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")