Ignore:
Timestamp:
09/15/2023 10:54:55 AM (9 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/clfs-ng
Children:
7546d8b
Parents:
d58da4b (diff), ba40e32 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/trunk' into xry111/clfs-ng

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/binutils-pass2.xml

    rd58da4b r2df066c9  
    4444    <title>Installation of Binutils</title>
    4545
    46     <!-- Don't remove this until Binutils upstream updates the libtool
    47          copy.  On some host distros the issue doesn't show up.  -->
    48     <para>Binutils ships an outdated copy of libtool in the tarball.  It lacks
    49     sysroot support, so the produced binaries will be mistakenly linked to
    50     libraries from the host distro.  Work around this issue:</para>
     46    <!-- Don't remove this until Binutils upstream resolves this issue.
     47         We can test by building Binutils on a complete system with
     48         zlib (libz.so) installed, passing enable-shared and
     49         without-system-zlib.  If the resulted libctf.so still links against
     50         libz.so (check with readelf -d) despite we are saying
     51         without-system-zlib, then the issue is still unresolved.  -->
     52    <para>Binutils building system relies on an shipped libtool copy to link against
     53    internal static libraries, but the libiberty and zlib copies shipped
     54    in the package do not use libtool.  This inconsistency may cause
     55    produced binaries mistakenly linked against libraries from the host
     56    distro.  Work around this issue:</para>
    5157
    5258<screen><userinput remap="pre">sed '6009s/$add_dir//' -i ltmain.sh</userinput></screen>
     
    102108    cross compilation, and remove unnecessary static libraries:</para>
    103109
    104 <screen><userinput remap="install">rm -v $LFS/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes}.{a,la}</userinput></screen>
     110<screen><userinput remap="install">rm -v $LFS/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes,sframe}.{a,la}</userinput></screen>
    105111
    106112  </sect2>
Note: See TracChangeset for help on using the changeset viewer.