libtool
[Top][All Lists]
Advanced

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

Re: IRIX inheriting RPATH of libraries


From: Tim Mooney
Subject: Re: IRIX inheriting RPATH of libraries
Date: Mon, 21 Jul 2003 17:02:45 -0500 (CDT)

In regard to: IRIX inheriting RPATH of libraries, Albert Chin said (at...:

>Ugh! Looks like IRIX will inherit the RPATH of a library. So, say
>program foo is linked against libbar2.so and libbar2.so is dependent
>on libbar1.so. At build time, the runtime path of the .libs directory
>containing libbar1.so will be added to the RPATH entry of libbar2.so.
>Then, when program foo is created, this .libs directory is added to
>the RPATH entry of program foo. Because program foo is not relinked at
>install time, it keeps this RPATH entry.
>
>Looks like we need another variable, inherit_rpath, that relinks
>programs when true.

I must be missing something, because I'm not seeing how that's different
from other osf-style linkers.  Tru64 executables pick up the DT_RPATH
from each and every library they link directly against -- I guess I've
never thought about or checked whether they pick up the RPATH for
libraries that their libraries depend on.

I know you're very familiar with the Tru64 linker/loader behavior.  Can
you explain what's different that you're surprised about in the IRIX
linker vs. the Tru64 linker or other osf-style linkers?

I actually like and have made great use of the "executables pick up
the RPATH entries for libraries they link against".  It can be very handy.

Tim
-- 
Tim Mooney                              address@hidden
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164




reply via email to

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