]> granicus.if.org Git - p11-kit/commitdiff
p11-kit can't be used as a static library
authorStef Walter <stefw@collabora.co.uk>
Sun, 30 Oct 2011 19:32:40 +0000 (20:32 +0100)
committerStef Walter <stefw@collabora.co.uk>
Sun, 30 Oct 2011 19:33:18 +0000 (20:33 +0100)
 * It just doesn't make sense.
 * The initialization refcounting in particular can only work as
   a shared library.

configure.ac

index 254408473cf038e1975f8c3658d1eaebef69cde9..f76e9d52adbbf91be514a8554c2c99e7ad2a5465 100644 (file)
@@ -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*)