[lfs-dev] gmp mpfr mpc static libraries

Fernando de Oliveira famobr at yahoo.com.br
Sun Mar 8 06:40:22 PDT 2015


On 07-03-2015 18:08, Bruce Dubbs wrote:
> 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/libsupp.a

Thanks, Bruce.

I will do it slightly modified.

For bzip2, I used:

                install -vdm755  /usr/lib/famo-static-libs
                xz -v /usr/lib/libbz2.a
                mv -vi /usr/lib/{libbz2.a.xz,famo-static-libs}

and will do like that for others that I cannot remove in configure.

There was a typo in previous one (after-thought).

-- 
[]s,
Fernando



More information about the lfs-dev mailing list