[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Compiling rpm statically?
- From: Jeff Johnson <jbj redhat com>
- To: "M. Fioretti" <mfioretti mclink it>, RPM Package Manager <rpm-list redhat com>
- Cc:
- Subject: Re: Compiling rpm statically?
- Date: Mon, 9 Aug 2004 14:01:36 -0400
On Mon, Aug 09, 2004 at 08:25:22AM +0200, M. Fioretti wrote:
> Greetings,
>
> last week I asked the question below, without result:
>
> > > to fit on a boot floppy and into small RAM, rpm for Fedora Core 2
> > > must be compiled statically against a slimmed-down clib, in
> > > Slinky's case busybox.
>
> Maybe this question was too specific, but do you have any
> general information/proven makefile/tip/whatever on compiling rpm
> statically?
>
Edit Makefile.am, uncomment the -all-static. Note that static
linking does not uncouple rpm from needing various modules from
glibc et al, as "static" just means that dlopen is included in the binary,
not that everything necessary for running is linked into the executable.
There are some legacy issues with thread local storage and NPTL that
make it difficult to statically link /bin/rpm as traditionally. However,
static linking is still there, and known to "work", I do it all the time
to simplify debugging break points.
You might also be better off with the rpm support in busybox if you
are trying to creata a rescue mode disk.
73 de Jeff
--
Jeff Johnson ARS N3NPQ
jbj@redhat.com (jbj@jbj.org)
Chapel Hill, NC
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]