libbb shared library

Bernhard Fischer rep.nop at aon.at
Wed Jan 4 06:55:36 PST 2006


On Fri, Dec 16, 2005 at 12:25:35AM -0600, Rob Landley wrote:
>On Thursday 15 December 2005 04:33, Bernhard Fischer wrote:
>> On Wed, Dec 14, 2005 at 11:56:48PM -0500, John Kelly wrote:
>> >On Wed, 14 Dec 2005 22:43:24 -0600, Rob Landley <rob at landley.net>
>> >
>> >wrote:
>> >>> It would be nice if libbb was a shared library.
>> >>
>> >>Please try to keep up with the group:
>> >>http://www.busybox.net/lists/busybox/2005-May/014638.html
>>
>> I could provide an updated patch if need be. For the sake of smaller size,
>> i did choose to switch to IMA compile mode for the patch i use for
>> libbusybox. As pointed out several times, IMA mode doesn't work
>> consistently in gcc-3.x and -4.x, so for 1.2, we will have the IMA mode
>> as independant option in the build submenu to let the user turn it on or
>> off depending on which compiler-version she uses, how much RAM she has
>> on the build-host etc, etc.
>
>This and standalone are something we should deal with early in the 1.2 series, 
>I think.

Yes. Meanwhile i'm putting it here if someone wants to play with it:
http://busybox.net/~aldot/busybox.libbusybox+ima.06.patch
(it's around 45kB)

I'm slowly starting to make libbb/*.c depend on wheather their callers
are selected or not. As can be seen in the patch referenced above you
can choose between a full fledged libbusybox or a variant which only
contains the stuff for busybox itself.

If someone wants to look at listing the headers which should be
installed via "install-headers" (or however it will be called),
please do. I think i didn't do this yet and i won't look at this soon.

diffstat for the libbusybox branch currently looks like:
 Makefile                           |  104 ++++++++++++++++++++++++++++++++++---
 Rules.mak                          |   40 +++++++++++++-
 applets/Makefile.in                |    7 +-
 applets/applets.c                  |    2 
 applets/install.sh                 |   19 ++++++
 archival/Makefile.in               |    7 ++
 archival/libunarchive/Makefile.in  |   34 +++++-------
 console-tools/Makefile.in          |   30 ++++++----
 coreutils/Makefile.in              |    5 +
 coreutils/libcoreutils/Makefile.in |   55 ++++++++++++-------
 debianutils/Makefile.in            |    4 +
 e2fsprogs/Makefile.in              |   11 +++
 editors/Makefile.in                |    9 ++-
 findutils/Makefile.in              |    5 +
 init/Makefile.in                   |   15 +++--
 libbb/Makefile.in                  |   98 ++++++++++++++++++++++------------
 libpwdgrp/Makefile.in              |   27 +++++++--
 loginutils/Makefile.in             |    7 ++
 miscutils/Makefile.in              |    7 ++
 modutils/Makefile.in               |    5 +
 networking/Makefile.in             |   12 +++-
 networking/libiproute/Makefile.in  |   45 +++++++++-------
 networking/udhcp/Makefile.in       |   30 ++++------
 procps/Makefile.in                 |    5 +
 shell/Makefile.in                  |    5 +
 sysdeps/linux/Config.in            |   60 +++++++++++++++++++--
 sysklogd/Makefile.in               |    5 +
 util-linux/Makefile.in             |    6 ++
 28 files changed, 503 insertions(+), 156 deletions(-)



More information about the busybox mailing list