Author: xry111
Date: Thu Feb  4 07:34:31 2021
New Revision: 12125

Log:
ch06/file: disable host libraries to prevent FTBFS

Modified:
   trunk/BOOK/chapter06/file.xml

Modified: trunk/BOOK/chapter06/file.xml
==============================================================================
--- trunk/BOOK/chapter06/file.xml       Wed Feb  3 02:53:51 2021        (r12124)
+++ trunk/BOOK/chapter06/file.xml       Thu Feb  4 07:34:31 2021        (r12125)
@@ -51,10 +51,28 @@
 
 <screen><userinput remap="pre">mkdir build
 pushd build
-  ../configure
+  ../configure --disable-bzlib      \ 
+               --disable-libseccomp \
+               --disable-xzlib      \
+               --disable-zlib
   make
 popd</userinput></screen>
 
+    <variablelist>
+      <title>The meaning of the new configure option:</title>
+
+      <varlistentry>
+        <term><parameter>--disable-*</parameter></term>
+        <listitem>
+          <para>The configuration script attempt to use some packages from
+          the host distribution if the corresponding library files exist.
+          It may cause compilation failure if a library file exists, but
+          the corresponding header files do not exist.  The options prevent
+          to use the packages from the host.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+
     <para>Prepare File for compilation:</para>
 
 <screen><userinput remap="configure">./configure --prefix=/usr --host=$LFS_TGT 
--build=$(./config.guess)</userinput></screen>
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to