cleanup: rephrase description for .la removal

Don't emphasis "static library" at all, to prevent anyone from thinking
"I need to use static libraries so I'll keep these .la files".  And warn
that .la files are known to break BLFS packages.
This commit is contained in:
Xi Ruoyao 2022-09-19 14:12:17 +08:00
parent 4e381f952e
commit 3d65730e22
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3
2 changed files with 8 additions and 8 deletions

View File

@ -18,10 +18,10 @@
<screen><userinput>rm -rf /usr/share/{info,man,doc}/*</userinput></screen>
<para>Second, the libtool .la files are only useful when linking with static
libraries. They are unneeded and potentially harmful when using dynamic
shared libraries, especially when using non-autotools build systems.
While still in chroot, remove those files now:</para>
<para>Second, on a modern Linux system, the libtool .la files are only
useful for libltdl. No libraries in LFS are expected to be loaded by
libltdl, and it's known that some .la files can cause BLFS packages
fail to build. Remove those files now:</para>
<screen><userinput>find /usr/{lib,libexec} -name \*.la -delete</userinput></screen>

View File

@ -16,10 +16,10 @@
<para>There are also several files installed in the /usr/lib and /usr/libexec
directories with a file name extension of .la. These are "libtool archive"
files. As already said, they are only useful when linking with static
libraries. They are unneeded when using ELF dynamic shared libraries, and
it's known they can cause BLFS packages fail to build.
To remove them, run:</para>
files. As already said, on a modern Linux system the libtool .la files are
only useful for libltdl. No libraries in LFS are expected to be loaded
by libltdl, and it's known that some .la files can cause BLFS packages
fail to build. Remove those files now:</para>
<screen><userinput>find /usr/lib /usr/libexec -name \*.la -delete</userinput></screen>