From: Stef Walter Date: Sun, 30 Oct 2011 19:32:40 +0000 (+0100) Subject: p11-kit can't be used as a static library X-Git-Tag: 0.9~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7370d64c18b795a63eda40efcc9e786b821cb7f7;p=p11-kit 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. --- 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*)