[lfs-dev] gmp mpfr mpc static libraries

Bruce Dubbs bruce.dubbs at gmail.com
Sat Mar 7 13:08:40 PST 2015


Fernando de Oliveira wrote:
> Using --disable-static in all three.
>
> xzgrep ^PASS ../logs/gmp-6.0.0a-make-k-check-2015.03.07-13h19m16s.log.xz
>   | wc -l
> 188
>
> $ xzgrep -A3 ====
> ..//logs/mpfr-3.1.2-make-k-check-2015.03.07-13h31m34s.log.xz
> ====================
> All 160 tests passed
> (1 test was not run)
> ====================
>
> $ xzgrep -A3 ====
> ..//logs/mpc-1.0.2-make-k-check-2015.03.07-13h50m18s.log.xz
> ===================
> All 64 tests passed
> ===================
>
> Finally, gcc tests are almost the same as Bruce's (some worse, some
> better). Would you wish the tests log or summary?
>
> Shall i continue without those static libraries? But probably gcc needs
> the static libraries?

There are only two ways I can think of to check if a static library is used or 
needed.

1.  Remove the installed static libs right after the package is built and see if 
something chokes later.

2.  Examine the logs (they probably need to be made vervose) and see if they are 
being used.

The third alternative is to jsut leave them.

Looking at Linux Mint 17:

$ ls /usr/lib/*.a
/usr/lib/libdialog.a

But on Debian that I used to build LFS:

$ find /mnt/tmp/usr/lib -name \*.a

/mnt/tmp/usr/lib/pymodules/python2.7/numpy/core/lib/libnpymath.a
/mnt/tmp/usr/lib/pymodules/python2.6/numpy/core/lib/libnpymath.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libBrokenLocale.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libxfsm-4.6.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libg.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libcurses.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/liby.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libtinfo.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libpanel.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libncurses.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libmcheck.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libcrypt.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libc_nonshared.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libncurses++.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libpthread_nonshared.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libtermcap.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libsqueeze-0.2.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libmenu.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libanl.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libform.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libc.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/xfce4/session/splash-engines/libmice.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/xfce4/session/splash-engines/libsimple.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/xfce4/session/splash-engines/libbalou.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libxfprint.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libm.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libieee.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/librpcsvc.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libutil.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libtic.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libbsd-compat.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libpthread.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libdl.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/librt.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libresolv.a
/mnt/tmp/usr/lib/x86_64-linux-gnu/libnsl.a
/mnt/tmp/usr/lib/gcc/x86_64-linux-gnu/4.7/libsupc++.a
/mnt/tmp/usr/lib/gcc/x86_64-linux-gnu/4.7/libgcc.a
/mnt/tmp/usr/lib/gcc/x86_64-linux-gnu/4.7/libssp_nonshared.a
/mnt/tmp/usr/lib/gcc/x86_64-linux-gnu/4.7/libitm.a
/mnt/tmp/usr/lib/gcc/x86_64-linux-gnu/4.7/libgcov.a
/mnt/tmp/usr/lib/gcc/x86_64-linux-gnu/4.7/libquadmath.a
/mnt/tmp/usr/lib/gcc/x86_64-linux-gnu/4.7/libstdc++.a
/mnt/tmp/usr/lib/gcc/x86_64-linux-gnu/4.7/libgcc_eh.a
/mnt/tmp/usr/lib/gcc/x86_64-linux-gnu/4.7/libgomp.a
/mnt/tmp/usr/lib/pyshared/python2.7/numpy/core/lib/libnpymath.a
/mnt/tmp/usr/lib/pyshared/python2.6/numpy/core/lib/libnpymath.a
/mnt/tmp/usr/lib/libsupp.a


   -- Bruce



More information about the lfs-dev mailing list