Commit 0fc6bbd1 authored by Daniel Salzman's avatar Daniel Salzman

libdnssec: link explicitly against libpthread if PKCS #11 is enabled

closes #629
parent c34c85c4
......@@ -176,6 +176,7 @@ PKG_CHECK_MODULES([gnutls], [gnutls >= 3.3], [
CFLAGS=$save_CFLAGS
LIBS=$save_LIBS
])
AM_CONDITIONAL([ENABLE_PKCS11], [test "$enable_pkcs11" = "yes"])
AC_ARG_ENABLE([recvmmsg],
AS_HELP_STRING([--enable-recvmmsg=auto|yes|no], [enable recvmmsg() network API [default=auto]]),
......
......@@ -20,6 +20,9 @@ libshared_la_SOURCES = \
libdnssec_la_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(gnutls_CFLAGS)
libdnssec_la_LDFLAGS = $(AM_LDFLAGS) $(libdnssec_VERSION_INFO) $(LDFLAG_EXCLUDE_LIBS)
libdnssec_la_LIBADD = libshared.la libcontrib.la $(gnutls_LIBS)
if ENABLE_PKCS11
libdnssec_la_LIBADD += $(pthread_LIBS)
endif
include_libdnssecdir = $(includedir)/libdnssec
include_libdnssec_HEADERS = \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment