Description: make sqlite compilation non-static
 To comply with Debian policy (section 4.13), static linking is now
 disabled, to ease work from the security team.
Author: Antoine Beaupré <anarcat@koumbit.org>
Bug-Debian: http://bugs.debian.org/485553
Origin: debian
Bug: http://jira.atheme.org/browse/CHARY-6
Forwarded: http://jira.atheme.org/secure/attachment/10722/non-static-sqlite
Last-Update: 2011-11-03

--- charybdis-3.3.0.orig/bandb/Makefile.in
+++ charybdis-3.3.0/bandb/Makefile.in
@@ -13,7 +13,7 @@ RM              = @RM@
 LEX             = @LEX@
 LEXLIB          = @LEXLIB@
 CFLAGS          = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
-LDFLAGS         = @LDFLAGS@
+LDFLAGS         = @LDFLAGS@ -lsqlite3
 MKDEP           = @MKDEP@ -DIRCD_PREFIX=\"@prefix@\"
 MV              = @MV@
 RM              = @RM@
@@ -39,16 +39,14 @@ PROGS		= bandb bantool
 BANDB_SOURCES =     \
   bandb.c	\
   rsdb_snprintf.c \
-  rsdb_sqlite3.c \
-  sqlite3.c
+  rsdb_sqlite3.c
 
 BANDB_OBJECTS = ${BANDB_SOURCES:.c=.o}
 
 BANTOOL_SOURCES =     \
   bantool.c	\
   rsdb_snprintf.c \
-  rsdb_sqlite3.c \
-  sqlite3.c
+  rsdb_sqlite3.c
 
 BANTOOL_OBJECTS = ${BANTOOL_SOURCES:.c=.o}
 
