Build all shared libraries with -no-undefined and link them properly
[strongswan.git] / src / libradius / Makefile.am
index 91ded23..4706f27 100644 (file)
@@ -1,7 +1,14 @@
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/libstrongswan
 
+AM_LDFLAGS = \
+       -no-undefined
+
 ipseclib_LTLIBRARIES = libradius.la
+
+libradius_la_LIBADD = \
+       $(top_builddir)/src/libstrongswan/libstrongswan.la
+
 libradius_la_SOURCES = \
        radius_message.h radius_message.c \
        radius_socket.h radius_socket.c \