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

andy at linuxfromscratch.org andy at linuxfromscratch.org
Mon Nov 28 17:22:47 PST 2011


Author: andy
Date: 2011-11-28 18:22:43 -0700 (Mon, 28 Nov 2011)
New Revision: 9027

Modified:
   trunk/BOOK/postlfs/security/nss.xml
Log:
On the nss page, added a test to set USE_64=1 automatically on x86_64

Modified: trunk/BOOK/postlfs/security/nss.xml
===================================================================
--- trunk/BOOK/postlfs/security/nss.xml	2011-11-29 00:48:56 UTC (rev 9026)
+++ trunk/BOOK/postlfs/security/nss.xml	2011-11-29 01:22:43 UTC (rev 9027)
@@ -91,7 +91,7 @@
     commands:</para>
 
 <screen><userinput>bash
-
+[ $(arch) = x86_64 ] && export USE_64=1
 export BUILD_OPT=1 &&
 export NSS_USE_SYSTEM_SQLITE=1 &&
 export NSPR_INCLUDE_DIR=/usr/include/nspr &&
@@ -158,9 +158,11 @@
     serves the purpose of restoring the environment and returning back to the
     original directory when the installation is complete.</para>
 
-    <para><command>export USE_64=1</command>:This command is
-    <emphasis>required on x86_64</emphasis>, otherwise the build will attempt
-    to create 32-bit objects and fail in a non-multilib system.</para>
+    <para><command>[ $(arch) = x86_64 ] && export USE_64=1</command>:
+    This command is <emphasis>required on x86_64</emphasis>, otherwise the
+    build will attempt to create 32-bit objects and fail in a non-multilib
+    system. The [ $(arch) = x86_64 ] test ensures it has no effect on a 32 bit
+    system.</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




More information about the blfs-book mailing list