From: Martin Willi Date: Mon, 9 Nov 2015 16:15:17 +0000 (+0100) Subject: pki: Explicitly link against -lpthread and -ldl if required X-Git-Tag: 5.4.0dr1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41106e7993cc699ba7d9dc5884d40a4c5091b8c4;p=thirdparty%2Fstrongswan.git pki: Explicitly link against -lpthread and -ldl if required We already do this for charon, as some toolchains require an explicit link even if libstrongswan already depends on it. --- diff --git a/src/pki/Makefile.am b/src/pki/Makefile.am index a3da0ab04f..261e41c16b 100644 --- a/src/pki/Makefile.am +++ b/src/pki/Makefile.am @@ -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 = \