swanctl: Explicitly link against -lpthread and -ldl if required
authorMartin Willi <martin@strongswan.org>
Mon, 9 Nov 2015 16:17:16 +0000 (17:17 +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/swanctl/Makefile.am

index d6aa044..0000c4c 100644 (file)
@@ -25,7 +25,8 @@ swanctl_SOURCES = \
 
 swanctl_LDADD = \
        $(top_builddir)/src/libcharon/plugins/vici/libvici.la \
-       $(top_builddir)/src/libstrongswan/libstrongswan.la
+       $(top_builddir)/src/libstrongswan/libstrongswan.la \
+       $(PTHREADLIB) $(DLLIB)
 
 swanctl.o :            $(top_builddir)/config.status