summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-05-24 15:48:31 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-05-24 15:48:54 +0200
commit398e23af5e03aea295cd71e852b97ad68094da9b (patch)
tree2b7d5cdde4837e8342e0ff9726f7d4dd1efa3df8
parente288041ec754dde85c369ae92dac40d7351fa7aa (diff)
downloadgnutls-398e23af5e03aea295cd71e852b97ad68094da9b.tar.gz
configure: warn when building as static library [ci skip]
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a322e625b2..e4f963a31f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1057,3 +1057,12 @@ AC_MSG_WARN([[
*** to generate or update it.
*** ]])
fi
+
+if test "${enable_static}" != no;then
+AC_MSG_WARN([[
+*** GnuTLS will be build as a static library. That means that library
+*** constructors for gnutls_global_init will not be made available to
+*** linking applications. If you are building that library for arbitrary
+*** applications to link, do not enable static linking.
+]])
+fi