summaryrefslogtreecommitdiff
path: root/src/libstrongswan/plugins/sqlite/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/plugins/sqlite/Makefile.am')
-rw-r--r--src/libstrongswan/plugins/sqlite/Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/sqlite/Makefile.am b/src/libstrongswan/plugins/sqlite/Makefile.am
index f26e31294..2e1d9733f 100644
--- a/src/libstrongswan/plugins/sqlite/Makefile.am
+++ b/src/libstrongswan/plugins/sqlite/Makefile.am
@@ -3,10 +3,16 @@ INCLUDES = -I$(top_srcdir)/src/libstrongswan
AM_CFLAGS = -rdynamic
+if MONOLITHIC
+noinst_LTLIBRARIES = libstrongswan-sqlite.la
+else
plugin_LTLIBRARIES = libstrongswan-sqlite.la
+endif
-libstrongswan_sqlite_la_SOURCES = sqlite_plugin.h sqlite_plugin.c \
+libstrongswan_sqlite_la_SOURCES = \
+ sqlite_plugin.h sqlite_plugin.c \
sqlite_database.h sqlite_database.c
+
libstrongswan_sqlite_la_LDFLAGS = -module -avoid-version
-libstrongswan_sqlite_la_LIBADD = -lsqlite3
+libstrongswan_sqlite_la_LIBADD = -lsqlite3