pki: Explicitly link against -lpthread and -ldl if required
authorMartin Willi <martin@strongswan.org>
Mon, 9 Nov 2015 16:15:17 +0000 (17:15 +0100)
committerMartin Willi <martin@strongswan.org>
Fri, 4 Dec 2015 07:02:03 +0000 (08:02 +0100)
We already do this for charon, as some toolchains require an explicit
link even if libstrongswan already depends on it.

src/pki/Makefile.am

index a3da0ab..261e41c 100644 (file)
@@ -17,7 +17,10 @@ pki_SOURCES = pki.c pki.h command.c command.h \
        commands/signcrl.c \
        commands/verify.c
 
-pki_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la
+pki_LDADD = \
+       $(top_builddir)/src/libstrongswan/libstrongswan.la \
+       $(PTHREADLIB) $(DLLIB)
+
 pki.o :        $(top_builddir)/config.status
 
 AM_CPPFLAGS = \