Go to file
Xi Ruoyao 6e6641f9b7
binutils: Add --enable-new-dtags
This option makes ld use DT_RUNPATH instead of DT_RPATH.  DT_RPATH is
generally considered bad because it takes precedence over
LD_LIBRARY_PATH.  For example, eog is linked with -rpath /usr/lib/eog,
and with DT_RPATH if an old eog is already installed we are basically
impossible to debug a new eog build w/o overwriting the system
installation first or explicitly using "ld.so --inhibit-rpath" to
invoke it.

This "new" actually means "new in 2000," it's 24 years ago and all other
distros has enabled it.  Thus I guess some unexplainable "test suite
uses installed library instead of the just built one" issues in BLFS are
actually caused by this difference: the package author just assumes
everyone is using DT_RUNPATH thus they just set LD_LIBRARY_PATH and
consider it enough to test with the just built libraries, but DT_RPATH
breaks this expectation.

Let's eliminate the difference as it seems not doing anything good and
doing so just takes one switch.
2024-07-18 11:13:20 +08:00
appendices dependencies: List rust-bindgen as Linux external dependency 2024-07-03 18:16:47 +08:00
bootscripts Update lfs-bootscripts to only output escape sequences to a terminal. 2024-07-06 17:12:29 -05:00
chapter01 Package updates. 2024-07-15 11:00:12 -05:00
chapter02 Move punctuation/comma into quotes for <xref>s 2024-06-22 11:43:31 +08:00
chapter03 Package updates. 2024-06-14 10:37:53 -05:00
chapter04 treewide: Use <ulink> instead of <filename> for man pages 2024-01-26 01:59:06 +08:00
chapter05 binutils: Add --enable-new-dtags 2024-07-18 11:13:20 +08:00
chapter06 binutils: Add --enable-new-dtags 2024-07-18 11:13:20 +08:00
chapter07 Package and format updates. 2024-06-30 10:40:41 -05:00
chapter08 binutils: Add --enable-new-dtags 2024-07-18 11:13:20 +08:00
chapter09 Package and format updates. 2024-06-30 10:40:41 -05:00
chapter10 Move punctuation/comma into quotes for <xref>s 2024-06-22 11:43:31 +08:00
chapter11 If we need to create the link target of /dev/shm, make its mode 1777 2024-02-04 22:56:04 +08:00
images Adding some new png files to supoprt alternate css 2015-08-10 17:53:57 +00:00
part3intro generalinstructions: Remove a false statement about "cp -R destroys symlink" 2024-04-06 17:39:05 +08:00
prologue Fix punctuation in quotes, and quote signs 2024-01-26 18:28:53 +01:00
stylesheets Fix rendering of non-chunked output 2024-03-04 17:31:33 +01:00
udev-lfs Update to udev-lfs-20230818 2023-08-18 10:35:49 -05:00
.gitignore build: Add "make dist" 2023-09-13 14:10:38 +08:00
aux-file-data.sh Convert bootscripts and udev tarballs to xz 2019-06-30 19:25:49 +00:00
gen-changelog.py gen-changelog: Handles holding tickets 2023-12-31 01:09:57 +08:00
general.ent hostreq: Raise min-kernel to 4.19 2024-02-02 09:03:51 +08:00
git-version.sh git-version: Use "-wip" as the version suffix instead of "+" for changes not committed yet 2024-01-19 12:23:30 +08:00
index.xml Change all xml files to utf-8 encoding 2024-01-18 20:53:23 +01:00
INSTALL doc: correct the URL of BLFS docbook-xml-4.5 page 2022-02-23 02:10:17 +08:00
lfs-latest-git.php Fix sysklogd currency 2024-07-01 08:01:10 -05:00
lfs-latest.php currency: Remove stale lfs-latest.php and symlink lfs-latest-git.php to it 2023-09-03 03:30:43 +08:00
make-aux-files.sh Fix make-aux-file for lfs-bootscript entities 2021-09-22 23:21:31 +02:00
Makefile Makefile: improvements in xsltproc commands 2024-01-27 22:42:07 +01:00
obfuscate.sh Fix small typos 2023-08-03 22:55:17 +08:00
packages.ent Package updates. 2024-07-15 11:00:12 -05:00
patches.ent Package updates. 2024-06-14 10:37:53 -05:00
pdf-fixups.sh Fix pdf presentation issues and some misc issues 2022-03-14 13:08:40 -05: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 Generate utf-8 encoded html 2023-11-23 20:59:52 +01:00

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