On Fri, Jan 09, 2004, Christopher Chan wrote:
> I have a program that uses and loads librpm shared libraries during runtime,
> and I want it to use the OpenPKG libraries, but I only see static librpm
> libraries installed for OpenPKG. As a result, it loads the system librpm
> shared libs and blows up since it is trying to work with OpenPKG.
>
> Where can I find the OpenPKG librpm shared libs?
> If they do not exist for distribution, how do I build them?
We do not build RPM with a shared library. If you want those shared
library versions of librpm you have to manually try to change the
openpkg.spec to achieve this, but keep in mind that the bootstrap is a
very sensible package which usually dislikes very much such side-effect
causing changes. But give it a try...
Alternatively, on a PIC-smart and GNU binutils based platform (e.g.
FreeBSD or Linux) you can try to create a librpm.so manually out of the
librpm*.a files with a post-installation trick:
$ ld --shared --whole-archive -o <prefix>/lib/librpm.so <prefix>/lib/librpm*.a
This does not work on all platforms, of course. Especially because
librpm*.a do not contain PIC, but it should work reasonably enough on
FreeBSD and Linux.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]