Go to file
Xi Ruoyao 0fc98a07ff
gcc-pass1: set --with-glibc-version to target glibc version
"info gccinstall" says:

'--with-glibc-version=MAJOR.MINOR'
     Tell GCC that when the GNU C Library (glibc) is used on the target
     it will be version MAJOR.MINOR or later.  Normally this can be
     detected from the C library's header files, but this option may be
     needed when bootstrapping a cross toolchain without the header
     files available for building the initial bootstrap compiler.

So it can, and should be set to the version of glibc which will be built
for the chroot environment.

On x86_64, currently it does not make any difference with values >=
2.13.  But it may make a difference if a new feature is added to glibc,
or on other platforms.
2021-12-03 03:06:18 +08:00
appendices don't enable CONFIG_IKHEADERS building the kernel 2021-11-23 18:23:51 +08:00
bootscripts
chapter01 Package updates. 2021-11-30 12:43:05 -06:00
chapter02
chapter03 Package updates. 2021-11-30 12:43:05 -06:00
chapter04 move the ln note back to chap 5 glibc 2021-11-12 00:41:02 +08:00
chapter05 gcc-pass1: set --with-glibc-version to target glibc version 2021-12-03 03:06:18 +08:00
chapter06
chapter07
chapter08 systemd: minor reword for Linux header >= 5.14 issue 2021-11-15 23:34:44 +08:00
chapter09
chapter10 don't enable CONFIG_IKHEADERS building the kernel 2021-11-23 18:23:51 +08:00
chapter11
images
part3intro toolchain note: add a disclaimer for the purpose of the book 2021-11-12 17:47:16 +08:00
prologue
stylesheets
udev-lfs
.gitignore
aux-file-data.sh
general.ent
git-version.sh
index.xml
INSTALL
lfs-latest-git.php
lfs-latest.php
make-aux-files.sh
Makefile
obfuscate.sh
packages.ent Package updates. 2021-11-30 12:43:05 -06:00
patches.ent
pdf-fixups.sh
process-scripts.sh
README
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