Go to file
Xi Ruoyao 426913ea08
binutils-pass2: workaround "binaries link to host libraries" issue
A very old libtool copy (2009-11-29) is shipped in binutils tarball.  It
does not support sysroot, so the cross-built binutils binaries may link
to libraries from the host distro, if certain libraries are available.

The ideal solution should be updating libtool, as libtool-2.4.6 (in LFS)
has sysroot support.  However, updating libtool for binutils is not
trivial: it would require to rerun autoconf and binutils building system
sticks to autoconf-2.69.  Another issue is the sysroot support for
libtool has introduced a configure option "--with-sysroot", which
conflicts with an already existing option with the same name in
GCC and binutils building system (we are using the GCC/binutils version
of --with-sysroot in chapter 5).

GCC building system has --with-build-sysroot (we are using this for GCC
pass 2) for this issue.  Binutils copied GCC building system, but it
does not respect --with-build-sysroot.

So for now we just edit libtool code to prevent "-L/usr/lib" in
$LFS_TGT_gcc command line.  It should fix the issue about host libiberty
(reported in #lfs-support) as well, but it still need to be confirmed by
someone having such a host.

Tested with a jhalfs run on LFS.
2022-02-10 21:05:33 +08:00
appendices Add glib2 as an optional dependency of pkg-config 2022-02-10 10:28:23 +01:00
bootscripts Remove spaces at end of lines - bootscripts 2021-09-07 23:01:23 +02:00
chapter01 binutils-pass2: workaround "binaries link to host libraries" issue 2022-02-10 21:05:33 +08:00
chapter02 Forgotten eol space in chapter02 2021-09-07 23:03:22 +02:00
chapter03 Package updates. 2022-02-09 20:54:15 -06:00
chapter04 remove "+h" in bash commands in chroot (#4998) 2022-02-05 20:48:27 +08:00
chapter05 Revert "binutils: use -j1 for make install" 2022-02-04 17:55:05 +08:00
chapter06 binutils-pass2: workaround "binaries link to host libraries" issue 2022-02-10 21:05:33 +08:00
chapter07 systemd: remove unneeded group "systemd-bus-proxy" 2022-02-05 22:16:25 +08:00
chapter08 Package updates. 2022-02-09 20:54:15 -06:00
chapter09 systemd net cfg: fix unclosed <...> 2022-02-06 07:08:18 +08:00
chapter10 Fix CVE-2021-3997 in systemd. 2022-01-13 15:16:37 -06:00
chapter11 Make umounting explicit 2021-11-01 12:05:41 -05:00
images
part3intro toolchain note: add a disclaimer for the purpose of the book 2021-11-12 17:47:16 +08:00
prologue Move Python to LFS in Standards section (again) 2021-12-17 10:26:36 -06:00
stylesheets Remove eol spaces in xsl stylesheets 2021-09-07 23:28:43 +02:00
udev-lfs Remove eol spaces 2021-09-07 23:10:29 +02:00
.gitignore Update currency to use https everywhere 2021-11-08 10:14:24 -06:00
aux-file-data.sh
general.ent Set general.ent for development 2021-09-22 23:28:01 +02:00
git-version.sh Package updates. 2021-12-31 07:10:48 -06:00
index.xml Just a test 2021-04-13 15:01:48 -05:00
INSTALL Remove eol spaces 2021-09-07 23:05:44 +02:00
lfs-latest-git.php Fix currency for tcl 2022-02-04 13:29:55 -06:00
lfs-latest.php Remove eol spaces 2021-09-07 23:10:29 +02:00
make-aux-files.sh Fix make-aux-file for lfs-bootscript entities 2021-09-22 23:21:31 +02:00
Makefile Add a conditional entity for sysv/systemd 2021-09-22 23:11:52 +02:00
obfuscate.sh
packages.ent Package updates. 2022-02-09 20:54:15 -06:00
patches.ent Package updates. 2022-02-09 20:54:15 -06:00
pdf-fixups.sh Remove eol spaces 2021-09-07 23:10:29 +02:00
process-scripts.sh Remove eol spaces 2021-09-07 23:10:29 +02:00
README Remove eol spaces 2021-09-07 23:05:44 +02:00
tidy.conf

LFS Book README

This document is meant to instruct the user on how to convert the book's XML
source to other formats (e.g. HTML, PDF, PS and TXT).  First, if you have not
already done so, please read the INSTALL file for instructions on how to install
the required software.  If you have already completed the steps outlined in the
INSTALL file, then continue reading for examples how to convert these files into
various other formats.

In all examples, setting the parameter REV=systemd is needed to build the
systemd version of the book.

XML to XHTML:
-------------
make BASEDIR=/path/to/output/location


XML to single file XHTML (nochunks):
------------------------------------
make BASEDIR=/path/to/output/location nochunks

XML to TXT
----------
Follow the instructions for nochunks and then run:
lynx -dump /path/to/nochunks >/path/to/output

XML to PDF:
-----------
make BASEDIR=/path/to/output/location pdf