Build all shared libraries with -no-undefined and link them properly
[strongswan.git] / src / libipsec / Makefile.am
index 74379f1..41f5ae9 100644 (file)
@@ -13,11 +13,15 @@ ipsec_processor.c ipsec_processor.h \
 ipsec_sa.c ipsec_sa.h \
 ipsec_sa_mgr.c ipsec_sa_mgr.h
 
 ipsec_sa.c ipsec_sa.h \
 ipsec_sa_mgr.c ipsec_sa_mgr.h
 
-libipsec_la_LIBADD =
+libipsec_la_LIBADD = \
+       $(top_builddir)/src/libstrongswan/libstrongswan.la
 
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/libstrongswan
 
 
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/libstrongswan
 
+AM_LDFLAGS = \
+       -no-undefined
+
 EXTRA_DIST = Android.mk
 
 # build optional plugins
 EXTRA_DIST = Android.mk
 
 # build optional plugins