aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@mengyan1223.wang>2021-02-04 15:34:31 +0000
committerXi Ruoyao <xry111@mengyan1223.wang>2021-02-04 15:34:31 +0000
commit5d2fe083865990a569c35683f5f89cfd6daa8a24 (patch)
tree43d527828837bba3986c4cf1dd6b4c064381811d
parent97d5e7499c5e4cfbd95a44d0cd82184896ac301a (diff)
ch06/file: disable host libraries to prevent FTBFS
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12125 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter06/file.xml20
1 files changed, 19 insertions, 1 deletions
diff --git a/chapter06/file.xml b/chapter06/file.xml
index c9fbe0e6f..477da733c 100644
--- a/chapter06/file.xml
+++ b/chapter06/file.xml
@@ -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>