[patch] build shared libraries

Peter S. Mazinger ps.m at gmx.net
Mon Sep 5 12:52:49 UTC 2005


On Mon, 5 Sep 2005, Bernhard Fischer wrote:

[snip] 
> Note that all of them are not stripped and not built with PIC (which
> iirc adds a bit to the size).

would be interested in `readelf -d lib*.so | grep TEXTREL`

> # strip -s -R .debug -R .notes -R .comment -R .version libbb.so
> # ls -l libbb.so
> -rw-r--r--  1 0 0 63364 Sep  5 14:21 libbb.so
> 
> >> 
> >> Annotations:
> >> a) There are two files in libbb which use libcrypt: correct_password.c
> >> and pw_encrypt.c. Because of this libbb.so itself has to link against
> >> libcrypt. Is this intended, given that there is libpwdgrp?
> >
> >as I understand it, busybox used the version provided by *libc, libpwdgrp 
> >is meant for systems lacking libcrypt
> 
> I have not looked too closely, but i was under the impression that the
> libpwdgrp was linked in unconditionally as it provides the helpers for
> loginutils. If you are right, then we should provide an option to let
> the user select if libpwdgrp is to be built and linked in or not.

I was wrong, there is only CONFIG_USE_BB_PWD_GRP, if your libc lacks it, 
but no separate libcrypt option.

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the busybox mailing list