bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: ld, bad logic of dynamic linker search?


From: Ivan Popov
Subject: Re: ld, bad logic of dynamic linker search?
Date: Thu, 13 Mar 2003 22:45:38 +0100 (MET)

On Thu, 13 Mar 2003, Ivan Popov wrote:

> > If you invoke ld by way of gcc, you can set LIBRARY_PATH=/somewhere in
> > the environment.  gcc will then pass the appropriate flags to ld to
> > tell it to look there for libraries, startup files, etc.

> Thanks for your suggestion, but if I understand documentation correctly,
> it would hardcode the paths into the binary, and that is unfortunately
> unacceptable, linktime /somewhere/lib will be something else at runtime.

Oops, sorry, I was kind of talking to myself here.
It is "rpath" that can convince ld to look at the right place,
while LIBRARY_PATH given to gcc does not help - the dynamic linker is
looked up according to different rules, evidently.

It is those rules I am not content with.

(In fact I am always running gcc via a wrapper with LIBRARY_PATH set)

Best regards,
--
Ivan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]