Changeset 9f9a9b4


Ignore:
Timestamp:
09/08/2023 01:49:06 PM (9 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
c7df34cb
Parents:
aa5fa04
git-author:
Xi Ruoyao <xry111@…> (09/08/2023 01:45:15 PM)
git-committer:
Xi Ruoyao <xry111@…> (09/08/2023 01:49:06 PM)
Message:

binutils-pass2: Reword the paragraph about libtool workaround

Well, I was blaming libtool too much. If the entire Binutils tree uses
libtool this won't happen. The problem is Binutils building system is
using libtool-style idiom on non-libtool components.

And this issue is not related to cross compiling, at all. A native
build can exploit the issue as well (see the updated comment).

Maybe I'll submit a patch to GCC (yes, not a typo, GCC is the upstream
of Binutils building system) to fix the issue when I have the mood...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/binutils-pass2.xml

    raa5fa04 r9f9a9b4  
    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 relies on an internal 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>
Note: See TracChangeset for help on using the changeset viewer.