diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-09-04 14:25:22 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2013-09-12 01:44:49 +0200 |
commit | 9af44ef5d9534cf6a12c0ddd90f9cad5648dcd28 (patch) | |
tree | 5a071b7524ed142b46210c2009b4c65b72465ce7 /src/libcharon | |
parent | 3cb4552da62fc5c1550aa5b46a9a52ae2a1737c6 (diff) | |
download | strongswan-9af44ef5d9534cf6a12c0ddd90f9cad5648dcd28.tar.bz2 strongswan-9af44ef5d9534cf6a12c0ddd90f9cad5648dcd28.tar.xz |
Build all shared libraries with -no-undefined and link them properly
The flag is required to convince libtool on Cygwin to build DLLs. But on
Windows these shared libraries can not have undefined symbols, so we have to
link them explicitly to the libraries they reference.
For plugins this is currently not done, so only the monolithic build is
supported. The plugin loader wouldn't be able to load DLLs anyway, as
it tries to load files that don't exist on Cygwin.
Diffstat (limited to 'src/libcharon')
-rw-r--r-- | src/libcharon/Makefile.am | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libcharon/Makefile.am b/src/libcharon/Makefile.am index 9c7f67690..5ee047b9c 100644 --- a/src/libcharon/Makefile.am +++ b/src/libcharon/Makefile.am @@ -136,7 +136,13 @@ AM_CPPFLAGS = \ -DIPSEC_DIR=\"${ipsecdir}\" \ -DIPSEC_PIDDIR=\"${piddir}\" -libcharon_la_LIBADD = -lm $(PTHREADLIB) $(DLLIB) $(SOCKLIB) +AM_LDFLAGS = \ + -no-undefined + +libcharon_la_LIBADD = \ + $(top_builddir)/src/libstrongswan/libstrongswan.la \ + $(top_builddir)/src/libhydra/libhydra.la \ + -lm $(PTHREADLIB) $(DLLIB) $(SOCKLIB) EXTRA_DIST = Android.mk |