Re: Packaging a shared library
On Tue, Jun 13, 2000 at 09:05:36AM +0200, Ron Rademaker wrote:
> It can be used in 2 ways:
>
> 1. Using the environmental variable
> (sh syntax)
> LD_PRELOAD=/usr/lib/libsafe.so.1
> export LD_PRELOAD
>
> (csh syntax)
> setenv LD_PRELOAD /usr/lib/libsafe.so.1
In such a case it need not live in /usr/lib, as it does not need to be
seen by ld.so.
> 2. Using the file: /etc/ld.so.preload, if this is used the library must be
> on the root filesystem (according to the provided documentation)
If you're going to offer this, there's only one place it can go: /lib.
This is the only library directory guaranteed to be on the root
filesystem.
How about using debconf in the postinst to offer adding it to
/etc/ld.so.preload if the user wants it? And remember to delete it in
the prerm!
Julian
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
Debian GNU/Linux Developer, see http://www.debian.org/~jdg
Donate free food to the world's hungry: see http://www.thehungersite.com/
Reply to: