Build all shared libraries with -no-undefined and link them properly
[strongswan.git] / src / libfast / Makefile.am
index db91048..41a489b 100644 (file)
@@ -1,3 +1,13 @@
+AM_CPPFLAGS = \
+       -I$(top_srcdir)/src/libstrongswan \
+       -I/usr/include/ClearSilver
+
+AM_CFLAGS = \
+       -rdynamic
+
+AM_LDFLAGS = \
+       -no-undefined
+
 ipseclib_LTLIBRARIES = libfast.la
 
 libfast_la_SOURCES = \
@@ -10,7 +20,6 @@ nobase_fast_include_HEADERS = \
        fast_request.h fast_session.h fast_smtp.h
 endif
 
-libfast_la_LIBADD = $(top_builddir)/src/libstrongswan/libstrongswan.la \
-  -lfcgi $(clearsilver_LIBS) $(PTHREADLIB)
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I/usr/include/ClearSilver
-AM_CFLAGS = -rdynamic
+libfast_la_LIBADD = \
+       $(top_builddir)/src/libstrongswan/libstrongswan.la \
+       -lfcgi $(clearsilver_LIBS) $(PTHREADLIB)