On Sun, May 15, 2016 at 02:29:22PM -0500, Bruce Dubbs wrote:
> I took a look at my latest build and found a lot of archive files that we
> have not removed.  All of them are in /usr/lib as would be expected.  I went
> through them and think we can delete several that have parallel .so files,
> but some really need ot be kept and others I'm not sure about.
> 
> The only real way to definitively test the removal would be to do a whole
> BLFS build without them.
> 
> Removing these would be an optimization.  The size of all .a files in
> /usr/lib, including the nonshared files that really need to be kept, is only
> 21 MB.
> 
> I'll note that we have a lot more archives in BLFS that we do not address.
> A quick look finds 230 archives, including those from LFS.
> 
> Below is my list of LFS archive files.  Is this worth addressing?
> 
>   -- Bruce
> 
> ???    ./usr/lib/libmcheck.a
> ???    ./usr/lib/libstdc++fs.a
> ???    ./usr/lib/libncurses++w.a
> ???    ./usr/lib/librpcsvc.a
> ???    ./usr/lib/libsupc++.a
> ???    ./usr/lib/liby.a
> keep   ./usr/lib/libssp_nonshared.a
> keep   ./usr/lib/libpthread_nonshared.a
> keep   ./usr/lib/libmvec_nonshared.a
> keep   ./usr/lib/libc_nonshared.a
> keep   ./usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/libgcc.a
> keep   ./usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/libgcc_eh.a
> keep   ./usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/libgcov.a
> remove ./usr/lib/libresolv.a
> remove ./usr/lib/libstdc++.a
> remove ./usr/lib/libBrokenLocale.a
> remove ./usr/lib/libcilkrts.a
> remove ./usr/lib/libpthread.a
> remove ./usr/lib/libanl.a
> remove ./usr/lib/libasan.a
> remove ./usr/lib/libatomic.a
> remove ./usr/lib/libc.a
> remove ./usr/lib/libcrypt.a
> remove ./usr/lib/libdl.a
> remove ./usr/lib/libg.a
> remove ./usr/lib/libgomp.a
> remove ./usr/lib/libieee.a
> remove ./usr/lib/libitm.a
> remove ./usr/lib/liblsan.a
> remove ./usr/lib/libm.a
> remove ./usr/lib/libmpx.a
> remove ./usr/lib/libmpxwrappers.a
> remove ./usr/lib/libmvec.a
> remove ./usr/lib/libnsl.a
> remove ./usr/lib/libquadmath.a
> remove ./usr/lib/librt.a
> remove ./usr/lib/libssp.a
> remove ./usr/lib/libtsan.a
> remove ./usr/lib/libubsan.a
> remove ./usr/lib/libutil.a
> remove ./usr/lib/libvtv.a

ISTR I perhaps did not explore all of these down to the last
possible "should I stay or should I go ?" question, but I certainly
looked at most of them - and then I had to add at least one more
(maybe that was when I threw in all the new ones) when I upgraded
my local glibcs just before 7.9-rc2 : and then I had to make
that/those visible again when I upgraded firefox on older systems.

So, no, I do not delete many static libs.  For a few, I do delete
them, but only once I'm certain nothing on my desktop needs them.
And then, when I first built PAM, I had to rebuild something because
PAM did need the static lib.  What I do is move most of them to add
a .hidden to the name, such as /usr/lib/libfoo.a.hidden.

This is also a useful method for that rat's nest of static library
usage called kde5 :)

Anyway, at the moment I do NOT rename the following (this is for
gcc-5, I have not yet tried gcc-6)  - I've indicated those you
labelled as '???'

/usr/lib/libc.a
/usr/lib/libc_nonshared.a
/usr/lib/libdl.a
/usr/lib/libg.a
/usr/lib/libieee.a
/usr/lib/libm.a
/usr/lib/libmvec_nonshared.a
/usr/lib/libpthread_nonshared.a
/usr/lib/librpcsvc.a *
/usr/lib/libsupc++.a *

Hmm, looking at that I suppose libmvec_nonshared.a was my most
recent addition to the list.

I'm not on a recent desktop at the moment, so I can't check if any
of those in your list are new.

For BLFS, as well as a couple of Qt5 and kde libs there are also a
shedload of required static libs in the kdenlive deps.

ĸen
-- 
This email was written using 100% recycled letters.
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to