[blfs-book] r9028 - trunk/BOOK/postlfs/security

andy at linuxfromscratch.org andy at linuxfromscratch.org
Mon Nov 28 17:44:54 PST 2011


Author: andy
Date: 2011-11-28 18:44:50 -0700 (Mon, 28 Nov 2011)
New Revision: 9028

Modified:
   trunk/BOOK/postlfs/security/nss.xml
Log:
Added a test for sqlite to the nss page

Modified: trunk/BOOK/postlfs/security/nss.xml
===================================================================
--- trunk/BOOK/postlfs/security/nss.xml	2011-11-29 01:22:43 UTC (rev 9027)
+++ trunk/BOOK/postlfs/security/nss.xml	2011-11-29 01:44:50 UTC (rev 9028)
@@ -93,7 +93,8 @@
 <screen><userinput>bash
 [ $(arch) = x86_64 ] && export USE_64=1
 export BUILD_OPT=1 &&
-export NSS_USE_SYSTEM_SQLITE=1 &&
+cat /usr/include/sqlite3.h &> /dev/null &&
+export NSS_USE_SYSTEM_SQLITE=1
 export NSPR_INCLUDE_DIR=/usr/include/nspr &&
 export USE_SYSTEM_ZLIB=1 &&
 export ZLIB_LIBS=-lz &&
@@ -164,6 +165,12 @@
     system. The [ $(arch) = x86_64 ] test ensures it has no effect on a 32 bit
     system.</para>
 
+    <para><command>cat /usr/include/sqlite3.h ... </command>: tests if
+    <application>sqlite</application> is installed and if so it sets the
+    environment variable NSS_USE_SYSTEM_SQLITE=1 so that
+    <filename class="libraryfile">libsoftokn3.so</filename> will link against
+    the system version of sqlite.</para>
+
     <para><command>export BUILD_OPT=1</command>: This variable is set so that
     the build is performed with no debugging symbols built into the binaries
     and that the default compiler optimizations are used.</para>
@@ -171,9 +178,8 @@
     <para><command>export NSPR_INCLUDE_DIR=/usr/include/nspr</command>: This
     command sets the location of the nspr headers.</para>
 
-    <para><command>export USE_SYSTEM_*</command>: These commands ensure that
-    the system installed libraries are used instead of the in-tree
-    versions.</para>
+    <para><command>export USE_SYSTEM_ZLIB=1</command>: This command ensures that
+    the system installed library is used instead of the in-tree version.</para>
 
     <para><command>export ZLIB_LIBS=-lz</command>: This command provides the
     needed linker flags to link to the system zlib.</para>




More information about the blfs-book mailing list