From 6099a4714944f72636abb2cc5b31aead091bd9c5 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 19 Aug 2022 12:41:48 +0800 Subject: 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. --- chapter01/changelog.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'chapter01') diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 8cf25f5b4..780ebbfe5 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -40,6 +40,16 @@ appropriate for the entry or if needed the entire day's listitem. --> + + 2022-08-18 + + + [xry111] - Remove libtool archive (.la) files in Chapter 5 + and 6 because those files are harmful for cross compilation. + + + + 2022-08-11 -- cgit v1.2.3-54-g00ecf