[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /lib/<arch>



On Sun, Mar 04, 2001 at 03:34:58PM -0500, Ben Collins wrote:

> On Sun, Mar 04, 2001 at 07:29:23AM -0500, Matt Zimmerman wrote:
> > 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).

Then, I would have to list the corresponding file for every library in
/lib/i686, or at least every one I care about (which is more than one).  I
guess an easier solution is just to use libc6-dbg and
LD_LIBRARY_PATH=/usr/lib/debug.

-- 
 - mdz



Reply to: