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.
This commit is contained in:
Tobias Brunner
2013-09-12 01:44:49 +02:00
committed by Andreas Steffen
parent 3cb4552da6
commit 9af44ef5d9
12 changed files with 73 additions and 9 deletions
+7
View File
@@ -3,7 +3,14 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/src/libhydra \
-I$(top_srcdir)/src/libcharon
AM_LDFLAGS = \
-no-undefined
ipseclib_LTLIBRARIES = libsimaka.la
libsimaka_la_LIBADD = \
$(top_builddir)/src/libstrongswan/libstrongswan.la
libsimaka_la_SOURCES = simaka_message.h simaka_message.c \
simaka_crypto.h simaka_crypto.c simaka_manager.h simaka_manager.c \
simaka_card.h simaka_provider.h simaka_hooks.h