aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07
diff options
context:
space:
mode:
authorThomas Trepl <thomas@linuxfromscratch.org>2020-06-22 13:47:30 +0000
committerThomas Trepl <thomas@linuxfromscratch.org>2020-06-22 13:47:30 +0000
commit6c329d77f0efd87bcc24b9869a015806509b5856 (patch)
tree523dcca1fab35834f55ae22c28c5c61aa994a546 /chapter07
parentd8606509133842b8125f3b6adf9931f279b6a38b (diff)
Move .la-removal to top
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11977 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07')
-rw-r--r--chapter07/stripping.xml18
1 files changed, 9 insertions, 9 deletions
diff --git a/chapter07/stripping.xml b/chapter07/stripping.xml
index 97c0e5805..9c2bd8c23 100644
--- a/chapter07/stripping.xml
+++ b/chapter07/stripping.xml
@@ -10,9 +10,16 @@
<title>Cleaning up and Saving the Temporary System</title>
+ <para>The libtool .la files are only useful when linking with static
+ libraries. They are unneeded, and potentially harmful, when using dynamic
+ shared libraries, specially when using non-autotools build systems.
+ While still in chroot, remove those files now:</para>
+
+<screen role="nodump"><userinput>find /usr/{lib,libexec} -name \*.la -delete</userinput></screen>
+
<note><para>
- All the steps in this section are optional. Nevertheless, as soon
- as you begin installing packages in <xref
+ All the remaining steps in this section are optional. Nevertheless,
+ as soon as you begin installing packages in <xref
linkend="chapter-building-system"/>, the temporary tools will be
overwritten. So it may be a good idea to do a backup of the temporary
tools as described below. The other steps are only needed if you are
@@ -94,13 +101,6 @@ strip --strip-unneeded $LFS/tools/bin/*</userinput></screen>
<screen role="nodump"><userinput>rm -rf $LFS/usr/share/{info,man,doc}</userinput></screen>
- <para>The libtool .la files are only useful when linking with static
- libraries. They are unneeded, and potentially harmful, when using dynamic
- shared libraries, specially when using non-autotools build systems.
- Remove those files now:</para>
-
-<screen role="nodump"><userinput>find $LFS/usr/{lib,libexec} -name \*.la -delete</userinput></screen>
-
<para>At this point, you should have at least 5 GB of free space on the
chroot partition that can be used to build and install Glibc and GCC in
the next phase. If you can build and install Glibc, you can build and install