SPECS (rpm-4_5): rpm.spec - deem. need different sources for db due md5

Jakub Bogusz qboosh at pld-linux.org
Wed Sep 3 20:57:12 CEST 2008


On Wed, Sep 03, 2008 at 07:17:56PM +0300, Elan Ruusamäe wrote:
> On Wednesday 03 September 2008 18:15:30 Jakub Bogusz wrote:
> > Serveral issues now:
> > - It makes rpm sources weight almost 30MB(!) (compared to 7MB from
> > upstream, which IIRC include yet one more copy of db sources)
> 
> however i have some other questions:
> 
> would it be ok to enable --uniquename in db-static build? (in db*.spec) 

Would be acceptable in -static, but it would require some function names
mangling in header(?).
Don't try it in shared (as long as it's named just libdbX.Y).

> how do you tell automake to link with libdb.a, but not linking everything 
> static (ie other libs would be dynamic linking)

Either:
- specify full pathname ( $(libdir)/libdb.a )
- as libtool will probably break "-Wl,-Bstatic -ldb -Wl,-Bdynamic", you
  can try something like "-Wl,-Bstatic,-ldb,-Bdynamic" or
  "-Wl,-Bstatic -Wl,-ldb -Wl,-Bdynamic"


-- 
Jakub Bogusz    http://qboosh.pl/


More information about the pld-devel-en mailing list