From 5d2fe083865990a569c35683f5f89cfd6daa8a24 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 4 Feb 2021 15:34:31 +0000 Subject: [PATCH] ch06/file: disable host libraries to prevent FTBFS git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12125 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/file.xml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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 @@ mkdir build pushd build - ../configure + ../configure --disable-bzlib \ + --disable-libseccomp \ + --disable-xzlib \ + --disable-zlib make popd + + The meaning of the new configure option: + + + --disable-* + + 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. + + + + Prepare File for compilation: ./configure --prefix=/usr --host=$LFS_TGT --build=$(./config.guess)