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
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to