summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@collabora.co.uk>2011-10-30 20:32:40 +0100
committerStef Walter <stefw@collabora.co.uk>2011-10-30 20:33:18 +0100
commit7370d64c18b795a63eda40efcc9e786b821cb7f7 (patch)
treee00ef5aaf71f3e9ec7346cff8bb27f36cf2d9246
parentdf0ed92f44fa168c0d02866796f3707687f43214 (diff)
downloadp11-kit-7370d64c18b795a63eda40efcc9e786b821cb7f7.tar.gz
p11-kit can't be used as a static library
* It just doesn't make sense. * The initialization refcounting in particular can only work as a shared library.
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2544084..f76e9d5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,6 +35,10 @@ AM_PROG_CC_C_O
LINGUAS=""
AM_GNU_GETTEXT([external], [need-ngettext])
+if test "$enable_static" = "yes"; then
+ AC_MSG_ERROR([p11-kit cannot be used as a static library])
+fi
+
AC_MSG_CHECKING([for win32])
case "$host" in
*-*-mingw*)