From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15850 invoked by alias); 27 Feb 2008 03:24:20 -0000 Received: (qmail 15841 invoked by uid 22791); 27 Feb 2008 03:24:19 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 27 Feb 2008 03:24:00 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id DAB479811F; Wed, 27 Feb 2008 03:23:58 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id C2A6498118; Wed, 27 Feb 2008 03:23:58 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JUCth-0006Rr-UG; Tue, 26 Feb 2008 22:23:57 -0500 Date: Wed, 27 Feb 2008 05:49:00 -0000 From: Daniel Jacobowitz To: Robert Bu Cc: gdb@sourceware.org Subject: Re: How to set the path of shared library in Linux Message-ID: <20080227032357.GA24771@caradoc.them.org> Mail-Followup-To: Robert Bu , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00228.txt.bz2 On Wed, Feb 27, 2008 at 11:16:19AM +0800, Robert Bu wrote: > As you can see GDB always tries > "/home/STools/RLX/scv-1.0p2-sysc-2.2.0-gcc-3.2.3/lib-linux/" instead of > using "/home/robert_bu/local/rlxvm_static_gcc323/lib" as I set. > > However, If I set this path to LD_LIBRARY_PATH, GDB can find it > successfully. GDB uses solib-search-path to find libraries for debugging. It doesn't affect what libraries your program uses when it runs, so you do have to use LD_LIBRARY_PATH. -- Daniel Jacobowitz CodeSourcery