aboutsummaryrefslogtreecommitdiffstats
path: root/chapter01
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-08-19 12:41:48 +0800
committerXi Ruoyao <xry111@xry111.site>2022-08-19 12:41:48 +0800
commit6099a4714944f72636abb2cc5b31aead091bd9c5 (patch)
tree3f1f43daf905d1d2978ce99257a50aa445a84364 /chapter01
parentd94f2d01a50466c98eaf92fc4e7c2ced50fdd91a (diff)
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.
Diffstat (limited to 'chapter01')
-rw-r--r--chapter01/changelog.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 8cf25f5b4..780ebbfe5 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -41,6 +41,16 @@
-->
<listitem>
+ <para>2022-08-18</para>
+ <itemizedlist>
+ <listitem>
+ <para>[xry111] - Remove libtool archive (.la) files in Chapter 5
+ and 6 because those files are harmful for cross compilation.</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+
+ <listitem>
<para>2022-08-11</para>
<itemizedlist>
<listitem>