From: Michael Jeanson Date: Tue, 25 Apr 2023 13:22:14 +0000 (-0400) Subject: Disallow building static librairies X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=79f8dc6f50b20fb6b1d99f9bd97d70aa361bc6ad;p=lttng-ust.git Disallow building static librairies We don't officialy support static linking the LTTng-UST tracer, however the autotools build system still allows building static libraries. Make it impossible to build static libraries without modifying the configure.ac script to make it explicit. Adding support for static linking would require a lot of additional testing an also for applications to explicitly call the library constructor. Change-Id: I55d7d9db9fa9c8623305901d085aef1a33286f28 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/configure.ac b/configure.ac index 86ef7c9c..ea4a2465 100644 --- a/configure.ac +++ b/configure.ac @@ -400,6 +400,10 @@ AE_IF_FEATURE_DISABLED([shared], [ AC_MSG_ERROR(LTTng-UST requires shared libraries to be enabled) ]) +AE_IF_FEATURE_ENABLED([static], [ + AC_MSG_ERROR(Static linking LTTng-UST is currently unsupported) +]) + AE_IF_FEATURE_ENABLED([java-agent-all], [ AE_FEATURE_ENABLE([java-agent-jul]) AE_FEATURE_ENABLE([java-agent-log4j])