libdbi-drivers/sqlite3.diff

26 lines
784 B
Diff

From: Jan Engelhardt <jengelh@inai.de>
Date: 2013-09-04 12:52:32.851115468 +0200
build: resolve link failure in sqlite3 module
The sqlite3 backend fails to link because the wrong library name is
used. (Ideally, libdbi-drivers should use PKG_CHECK_MODULES instead.)
---
acinclude.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: libdbi-drivers-0.9.0/acinclude.m4
===================================================================
--- libdbi-drivers-0.9.0.orig/acinclude.m4
+++ libdbi-drivers-0.9.0/acinclude.m4
@@ -310,7 +310,7 @@ if test "$ac_sqlite3" = "yes"; then
AC_SEARCH_LIBS_VAR([sqlite3_exec], sqlite3, , , , SQLITE3_LIBS)
SQLITE3_LDFLAGS=""
else
- SQLITE3_LIBS=-lsqlite
+ SQLITE3_LIBS=-lsqlite3
SQLITE3_LDFLAGS=-L$ac_sqlite3_libdir
fi