On Sun, Mar 04, 2001 at 07:29:23AM -0500, Matt Zimmerman wrote: > I poked around the glibc source a bit to try to find out how this works, but > it's a jungle in there, and I can't find any documentation on this subject. > > Is there any way to disable searching of /lib/i686 and friends on a > per-program > basis, via an environment variable or some such? Particularly, I'd like to > use > the normal libraries in /lib when running gdb (the debugged program, to be > specific). Thus far, I've simply disabled read permission on /lib/i686 (as > root) for these occasions, but it seems like there should be a way to do this > as a normal user. Is there? If not, will there ever be? > > Simply setting LD_LIBRARY_PATH=/lib does not seem to work.
LD_PRELOAD can be set to override (or use /etc/ld.so.preload, or the ld.so preload manager package). Ben -- -----------=======-=-======-=========-----------=====------------=-=------ / Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \ ` [EMAIL PROTECTED] -- [EMAIL PROTECTED] -- [EMAIL PROTECTED] ' `---=========------=======-------------=-=-----=-===-======-------=--=---'

