[lfs-dev] More on static libs

Ken Moffat zarniwhoop at ntlworld.com
Thu Mar 12 19:25:35 PDT 2015


On Thu, Mar 12, 2015 at 08:04:37PM -0500, Bruce Dubbs wrote:
> Bruce Dubbs wrote:
> 
> Interesting:
> 
> $ cat /usr/lib/libc.so
> /* GNU ld script
>    Use the shared library, but some functions are only in
>    the static library, so try that secondarily.  */
> OUTPUT_FORMAT(elf64-x86-64)
> GROUP ( /lib64/libc.so.6 /usr/lib64/libc_nonshared.a  AS_NEEDED (
> /lib64/ld-linux-x86-64.so.2 ) )
> 
> So  libc_nonshared.a is *really* needed.
> 
> On 686:
> 
> OUTPUT_FORMAT(elf32-i386)
> GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  AS_NEEDED ( /lib/ld-linux.so.2 ) )
> 
>   -- Bruce
> 
As you say, "Interesting", but at the moment my take is "some
packagages *may* need libc_nonshared.a".  My build has started,
let's see if it gets through chapter 6 without these static libs.

And worst case, I will find some of the packages where libc_nonshared
is used.

ĸen
-- 
Nanny Ogg usually went to bed early. After all, she was an old lady.
Sometimes she went to bed as early as 6 a.m.


More information about the lfs-dev mailing list