public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: "Abhay Misra" <0infinity0@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: LD_LIBRARY_PATH
Date: Tue, 30 Oct 2007 08:43:00 -0000	[thread overview]
Message-ID: <m3ejfdz0f3.fsf@localhost.localdomain> (raw)
In-Reply-To: <831990c90710291830u30a5b17ek6f529bc0e14741c5@mail.gmail.com>

"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

  reply	other threads:[~2007-10-30  4:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-30  2:02 LD_LIBRARY_PATH Abhay Misra
2007-10-30  8:43 ` Ian Lance Taylor [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-18 10:13 LD_LIBRARY_PATH Bansidhar Arvind Deshpande  - CTD, Chennai.
2003-11-18 10:30 ` LD_LIBRARY_PATH Bharathi S

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3ejfdz0f3.fsf@localhost.localdomain \
    --to=iant@google.com \
    --cc=0infinity0@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).