diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-05-24 15:48:31 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-05-24 15:53:12 +0200 |
commit | 6b748886799f88ddee9721dba4fc4d52854832ae (patch) | |
tree | cd76bb7de0e954d7357e83b83f7ebadc922567d5 | |
parent | 0630d1f69552017614289953f84b0652ea2b1768 (diff) | |
download | gnutls-6b748886799f88ddee9721dba4fc4d52854832ae.tar.gz |
configure: warn when building as static library [ci skip]
Relates #203
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 9339b3744b..503226bd20 100644 --- a/configure.ac +++ b/configure.ac @@ -1098,3 +1098,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 |