You are not logged in.
Is there a way to make a library preload only for a given binary? For instance, if I wanted only one application to preload libaoss.so, could I do that, or would I just have to preload it globally?
Offline
Read http://www.quequero.org/Intercepting_with_LD_PRELOAD.
The answer you want is
#LD_PRELOAD="/usr/lib/libaoss.so" /path/to/yourbinary
Offline
Thank you!
Edit: wait a minute, does putting this in /etc/profile work? Or will it execute that binary?
Putting things a bit better... What I'm looking for is a way to set things up so that a library is always preloaded for a given application, or several applications, when the binaries are executed.
Last edited by Gullible Jones (2008-06-04 16:32:47)
Offline
Make startup scripts, and make sure that they appear in your $PATH before the real application(s) do.
I have a ~/bin folder for this sort of thing.
Offline