From c2863e6d25a5baff47d5911de3e8ac0d2ec63c71 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 19 Apr 2020 08:14:10 +0000 Subject: Add remarks about .la files telling that they are potentially harmful git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11815 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/stripping.xml | 5 ++++- chapter06/revisedchroot.xml | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/chapter05/stripping.xml b/chapter05/stripping.xml index 10879d278..dc55959bf 100644 --- a/chapter05/stripping.xml +++ b/chapter05/stripping.xml @@ -31,7 +31,10 @@ rm -rf /tools/{,share}/{info,man,doc} - Remove unneeded files: + 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 also non-autotools build systems. + Remove those files now: find /tools/{lib,libexec} -name \*.la -delete diff --git a/chapter06/revisedchroot.xml b/chapter06/revisedchroot.xml index 10e68daea..eb40fb7ce 100644 --- a/chapter06/revisedchroot.xml +++ b/chapter06/revisedchroot.xml @@ -59,8 +59,10 @@ rm -f /usr/lib/libz.a There are also several files installed in the /usr/lib and /usr/libexec directories with a file name extention of .la. These are "libtool archive" - files and generally unneeded on a linux system. None of these are necessary - at this point. To remove them, run: + files. As already said, they are only useful when linking with static + libraries. They are unneeded, and potentially harmful, when using dynamic + shared libraries, specially when using also non-autotools build systems. + To remove them, run: find /usr/lib /usr/libexec -name \*.la -delete -- cgit v1.2.3-54-g00ecf