--- a/patches/sqlite3-02-using-libcurses.diff Fri Nov 11 06:34:51 2011 +0000
+++ b/patches/sqlite3-02-using-libcurses.diff Tue Nov 22 10:20:03 2011 +0000
@@ -1,11 +1,10 @@
---- sqlite-3.6.22/Makefile.in.old 2010-04-01 10:13:05.598353118 +0800
-+++ sqlite-3.6.22/Makefile.in 2010-04-01 10:39:40.808794452 +0800
-@@ -475,7 +475,7 @@
- sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la sqlite3.h
- $(LTLINK) $(READLINE_FLAGS) \
- -o $@ $(TOP)/src/shell.c libsqlite3.la \
-- $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)"
-+ -z record $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)"
+--- a/Makefile.am.orig 2011-03-29 15:44:46.468935251 +0800
++++ b/Makefile.am 2011-03-29 15:50:12.071188848 +0800
+@@ -8,6 +8,7 @@
+ bin_PROGRAMS = sqlite3
+ sqlite3_SOURCES = shell.c sqlite3.h
+ sqlite3_LDADD = $(top_builddir)/libsqlite3.la @READLINE_LIBS@
++sqlite3_LDFLAGS = -Wl,-zrecord
+ sqlite3_DEPENDENCIES = $(top_builddir)/libsqlite3.la
- # This target creates a directory named "tsrc" and fills it with
- # copies of all of the C source code and header files needed to
+ include_HEADERS = sqlite3.h sqlite3ext.h