Correct SQLite build for FTS3/4. Fixes #9986.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19442 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
DJ Lucas 2017-11-06 04:14:50 +00:00
parent fd1a0a3328
commit f91611f854
3 changed files with 19 additions and 8 deletions

View File

@ -1,12 +1,12 @@
<!-- $LastChangedBy$ $Date$ -->
<!ENTITY day "05"> <!-- Always 2 digits -->
<!ENTITY day "06"> <!-- Always 2 digits -->
<!ENTITY month "11"> <!-- Always 2 digits -->
<!ENTITY year "2017">
<!ENTITY copyrightdate "2001-&year;">
<!ENTITY copyholder "The BLFS Development Team">
<!ENTITY version "&year;-&month;-&day;">
<!ENTITY releasedate "November 5th, &year;">
<!ENTITY releasedate "November 6th, &year;">
<!ENTITY pubdate "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
<!ENTITY blfs-version "svn"> <!-- svn|[release #] -->
<!ENTITY lfs-version "development"> <!-- x.y|development -->

View File

@ -42,6 +42,16 @@
</listitem>
-->
<listitem>
<para>November 6th, 2017</para>
<itemizedlist>
<listitem>
<para>[dj] - Correct SQLite build for FTS3/4. Fixes
<ulink url="&blfs-ticket-root;9986">#9986</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>November 5th, 2017</para>
<itemizedlist>

View File

@ -127,8 +127,8 @@
</para>
<screen><userinput>./configure --prefix=/usr --disable-static \
--enable-fts3 --enable-fts4 \
--enable-fts5 CFLAGS="-g -O2 \
-DSQLITE_ENABLE_FTS4=1 \
-DSQLITE_ENABLE_COLUMN_METADATA=1 \
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
-DSQLITE_SECURE_DELETE=1 \
@ -162,21 +162,22 @@ cp -v -R sqlite-doc-&sqlite-doc-version;/* /usr/share/doc/sqlite-&sqlite-version
href="../../xincludes/static-libraries.xml"/>
<para>
<parameter>--enable-fts*</parameter>: enable all three full text search
extensions.
<parameter>--enable-fts5</parameter>: enable version 5 of the full text
search extension.
</para>
<para>
<parameter>CFLAGS="-g -O2
-DSQLITE_ENABLE_FTS4=1
-DSQLITE_ENABLE_COLUMN_METADATA=1
-DSQLITE_SECURE_DELETE
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1
-DSQLITE_ENABLE_DBSTAT_VTAB=1"</parameter>: Applications such as
<application>Firefox</application> require secure delete and enable
unlock notify to be turned on.
Since <application>firefox-41</application> the dbstat virtual
table is also required. The only way to do this is to include them in the
CFLAGS. By default, these are set to <literal>"-g -O2"</literal> so we
Since <application>firefox-41</application> the dbstat virtual table and
FTS3/4 are also required. The only way to do this is to include them in
the CFLAGS. By default, these are set to <literal>"-g -O2"</literal> so we
specify that to preserve those settings. You may, of course, wish to omit
the <literal>'-g'</literal> if you do not wish to create debugging
information. For further information on what can be specified see <ulink