sqlite3/sqlite-fts5-link.patch

26 lines
931 B
Diff

Index: sqlite-autoconf-3110100/Makefile.am
===================================================================
--- sqlite-autoconf-3110100.orig/Makefile.am
+++ sqlite-autoconf-3110100/Makefile.am
@@ -7,7 +7,7 @@ libsqlite3_la_LDFLAGS = -no-undefined -v
bin_PROGRAMS = sqlite3
sqlite3_SOURCES = shell.c sqlite3.c sqlite3.h
-sqlite3_LDADD = @READLINE_LIBS@
+sqlite3_LDADD = @READLINE_LIBS@ -lm
sqlite3_DEPENDENCIES = @EXTRA_SHELL_OBJ@
sqlite3_CFLAGS = $(AM_CFLAGS) -DSQLITE_ENABLE_EXPLAIN_COMMENTS
Index: sqlite-autoconf-3110100/sqlite3.pc.in
===================================================================
--- sqlite-autoconf-3110100.orig/sqlite3.pc.in
+++ sqlite-autoconf-3110100/sqlite3.pc.in
@@ -8,6 +8,6 @@ includedir=@includedir@
Name: SQLite
Description: SQL database engine
Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -lsqlite3
+Libs: -L${libdir} -lsqlite3 -lm
Libs.private: @LIBS@
Cflags: -I${includedir}