# This fix is needed for sqlite3 to run on Solaris. See Bug 15566164 and
# Bug 15705787 for details.
# Need to determine if these changes are still applicable to the latest version,
# and if so, then submit them upstream.
--- a/Makefile.am.orig 2015-12-21 15:35:19.261166407 +0530
+++ b/Makefile.am 2015-12-21 15:36:15.587286651 +0530
@@ -9,6 +9,7 @@ bin_PROGRAMS = sqlite3
EXTRA_sqlite3_SOURCES = sqlite3.c
sqlite3_LDADD = @EXTRA_SHELL_OBJ@ @READLINE_LIBS@
+sqlite3_LDFLAGS = -Wl,-zrecord
sqlite3_DEPENDENCIES = @EXTRA_SHELL_OBJ@
sqlite3_CFLAGS = $(AM_CFLAGS) -DSQLITE_ENABLE_EXPLAIN_COMMENTS