From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25784 invoked by alias); 30 Oct 2007 04:34:03 -0000 Received: (qmail 25773 invoked by uid 22791); 30 Oct 2007 04:34:02 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 30 Oct 2007 04:34:00 +0000 Received: from zps19.corp.google.com (zps19.corp.google.com [172.25.146.19]) by smtp-out.google.com with ESMTP id l9U4XqKb022965; Mon, 29 Oct 2007 21:33:52 -0700 Received: from smtp.corp.google.com (spacemonkey3.corp.google.com [192.168.120.116]) by zps19.corp.google.com with ESMTP id l9U4Xp9g007568 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 29 Oct 2007 21:33:52 -0700 Received: from localhost.localdomain.google.com (adsl-76-249-168-94.dsl.pltn13.sbcglobal.net [76.249.168.94]) (authenticated bits=0) by smtp.corp.google.com (8.13.8/8.13.8) with ESMTP id l9U4XmMR002664 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 29 Oct 2007 20:33:48 -0800 To: "Abhay Misra" <0infinity0@gmail.com> Cc: gcc-help@gcc.gnu.org Subject: Re: LD_LIBRARY_PATH References: <831990c90710291830u30a5b17ek6f529bc0e14741c5@mail.gmail.com> From: Ian Lance Taylor Date: Tue, 30 Oct 2007 08:43:00 -0000 In-Reply-To: <831990c90710291830u30a5b17ek6f529bc0e14741c5@mail.gmail.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-10/txt/msg00373.txt.bz2 "Abhay Misra" <0infinity0@gmail.com> writes: > I have been looking at http://linuxmafia.com/faq/Admin/ld-lib-path.html > & the Linux man pages. I am just trying to work out if > LD_LIBRARY_PATH is used at link time or not. I have been told that it > is only used at run time, however if I set it and try to link some of > the link errors seem to resolve themselves. Can some one please > clarify whether or not LD_LIBRARY_PATH is used at both at link and run > time. When doing a native link, LD_LIBRARY_PATH will be used at link time to help find shared libaries which are referenced by other shared libraries directly included in the link. That is, for a native linker, LD_LIBRARY_PATH will supply a value for the -rpath-link option, q.v. Ian