Changeset 6099a471 for chapter06


Ignore:
Timestamp:
08/19/2022 04:41:48 AM (20 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
aff530ed, c84195d, f2af13d
Parents:
d94f2d0
Message:

Remove libtool archive (.la) files in Chapter 5 and 6

They are really harmful. In Binutils pass 2, libstdc++.la caused the
building system to use host /usr/lib/libstdc++.so for gprofng. We now
has disabled gprofng for pass 2, but the similar issue also exists in
GCC pass 2. In a normal LFS build, the building system silently uses
/usr/lib/libstdc++.so (I guess it does not blow up simply because some
blind luck); in a real cross build (x86 -> ARM for example) the build
will fail.

Remove the .la files to fix this issue. Instead of only modifying
clfs-ng, it makes more sense to apply the change for trunk: though
the build does not fail, using host library is still a contamination.

Location:
chapter06
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chapter06/binutils-pass2.xml

    rd94f2d0 r6099a471  
    9999<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
    100100
     101    <para>Remove the libtool archive files because they are harmful for
     102    cross compilation, and remove unnecessary static libraries:</para>
     103
     104<screen><userinput remap="install">rm -v $LFS/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.{a,la}</userinput></screen>
     105
    101106  </sect2>
    102107
  • chapter06/file.xml

    rd94f2d0 r6099a471  
    9191<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
    9292
     93    <para>Remove the libtool archive file because it is harmful for cross
     94    compilation:</para>
     95
     96<screen><userinput remap="install">rm -v $LFS/usr/lib/libmagic.la</userinput></screen>
     97
    9398  </sect2>
    9499
  • chapter06/xz.xml

    rd94f2d0 r6099a471  
    6060<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
    6161
     62    <para>Remove the libtool archive file because it is harmful for cross
     63    compilation:</para>
     64
     65<screen><userinput remap="install">rm -v $LFS/usr/lib/liblzma.la</userinput></screen>
     66
    6267  </sect2>
    6368
Note: See TracChangeset for help on using the changeset viewer.