components/sqlite-3/patches/sqlite3-02-zrecord.patch
author Enrico Perla <enrico.perla@oracle.com>
Fri, 04 Nov 2016 15:22:03 -0700
changeset 7248 6e3eadd7bb71
parent 6349 00824654920d
permissions -rw-r--r--
20029192 Userland should build with ld -z sx=nx* flags instead of map.noexstk (fix backslashes)

# 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
 sqlite3_SOURCES = shell.c sqlite3.h
 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