lfs/chapter06
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
..
bash.xml Merge Xi's changes into trunk 2021-05-11 23:24:11 -05:00
binutils-pass2.xml binutils-pass2: workaround "binaries link to host libraries" issue 2022-02-10 21:05:33 +08:00
chapter06.xml binutils-pass2: workaround "binaries link to host libraries" issue 2022-02-10 21:05:33 +08:00
coreutils.xml Spacing 2021-09-04 10:48:46 -05:00
diffutils.xml
file.xml Remove spaces at end o lines - chapter06 2021-09-07 22:41:43 +02:00
findutils.xml add --localstatedir= for temp findutils 2021-05-18 12:55:25 +08:00
gawk.xml gawk, chap 6: now config.guess is in build-aux 2021-11-02 14:22:30 +01:00
gcc-pass2.xml fix some typos 2020-08-19 15:31:33 +00:00
grep.xml Merge Xi's changes into trunk 2021-05-11 23:24:11 -05:00
gzip.xml Merge Xi's changes into trunk 2021-05-11 23:24:11 -05:00
introduction.xml Remove spaces at end o lines - chapter06 2021-09-07 22:41:43 +02:00
m4.xml Remove modifications to m4 that are no longer needed. 2021-07-15 12:30:07 -05:00
make.xml
ncurses.xml chapter 6 ncurses: disable stripping (invoking host strip) 2021-12-18 01:32:45 +08:00
patch.xml
sed.xml Merge Xi's changes into trunk 2021-05-11 23:24:11 -05:00
tar.xml Merge Xi's changes into trunk 2021-05-11 23:24:11 -05:00
xz.xml Merge Xi's changes into trunk 2021-05-11 23:24:11 -05:00