[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Updates to busybox



Erik Andersen <andersen@xmission.com> writes:

> > > whiptail is 18k, plus an additional 65k for libnewt. I suspect that
> > > this is something that will not shrink down very well, so I think that
> > > keeping it outside of busybox may be best.

You forgot libpopt. :)

> > 
> > I will try to build it static, its the only one using the extra
> > libs. I think oe could save a lot when kicking out options and termcap 
> > support. A plain linux console optimised version is enough to boot,
> > maybe switching to B/W also saves something.
> 
> That will probably be a win... Just staticly link libnewt into whiptail,
> but make sure whiptail still uses the shared libc6.

How exactly do I do that? If I do --static all will be static, won´t
it? Do I have to link the .a file to it? I probably have to read the
gcc docs for the first time, oh I hate info pages.

I compiled whiptail with --static and I ended up with huge binary. :(

Maybe I will take lxdialog, its 29 K but only needs

ldd `which lxdialog`
        libncurses.so.4 => /lib/libncurses.so.4 (0x40016000)
        libc.so.6 => /lib/libc.so.6 (0x40056000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

libncurses is 237868 Bytes big.


ldd `which whiptail`
        libnewt.so.0.50 => /usr/lib/libnewt.so.0.50 (0x40016000)
        libslang.so.1 => /lib/libslang.so.1 (0x40028000)
        libm.so.6 => /lib/libm.so.6 (0x40086000)
        libdl.so.2 => /lib/libdl.so.2 (0x400a3000)
        libpopt.so.0 => /usr/lib/libpopt.so.0 (0x400a7000)
        libc.so.6 => /lib/libc.so.6 (0x400ad000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

-rw-r--r--   1 root     root         9340 Sep 28 15:03 /lib/libdl-2.1.2.so
-rw-r--r--   1 root     root       114880 Sep 28 15:03 /lib/libm-2.1.2.so
-rw-r--r--   1 root     root       328428 Oct 14 01:59 /lib/libslang.so.1.3.9
-rw-r--r--   1 root     root        65420 Oct 10 00:39 /usr/lib/libnewt.so.0.50
-rw-r--r--   1 root     root        18136 Jul 29 14:19 /usr/lib/libpopt.so.0.0.0
--------------------
536204 Bytes

May the Source be with you.
			Goswin


Reply to: