Disallow building static librairies
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 25 Apr 2023 13:22:14 +0000 (09:22 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 9 Jan 2024 19:55:14 +0000 (14:55 -0500)
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 <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac

index 86ef7c9cd82c64053867e60674f22c6585099aab..ea4a24653f8eb6717eae4448ef1c2f1bc7de7c13 100644 (file)
@@ -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])
This page took 0.02632 seconds and 4 git commands to generate.