Changeset 6099a471


Ignore:
Timestamp:
08/19/2022 04:41:48 AM (6 weeks ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.2, 11.2-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/queue-11.3
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.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    rd94f2d0 r6099a471  
    4242
    4343    <listitem>
     44      <para>2022-08-18</para>
     45      <itemizedlist>
     46        <listitem>
     47          <para>[xry111] - Remove libtool archive (.la) files in Chapter 5
     48          and 6 because those files are harmful for cross compilation.</para>
     49        </listitem>
     50      </itemizedlist>
     51    </listitem>
     52
     53    <listitem>
    4454      <para>2022-08-11</para>
    4555      <itemizedlist>
  • chapter05/libstdc++.xml

    rd94f2d0 r6099a471  
    122122<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
    123123
     124    <para>Remove the libtool archive files because they are harmful for
     125    cross compilation:</para>
     126
     127<screen><userinput remap="install">rm -v $LFS/usr/lib/lib{stdc++,stdc++fs,supc++}.la</userinput></screen>
     128
    124129  </sect2>
    125130
  • 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.