ld option for setting runtime libpath for AIX

Kevin Heatwole kdh@ocsystems.com
Thu Oct 25 15:32:00 GMT 2001


Man am I embarrassed...  -rpath does indeed work as I want.

When I read the man text for ld and saw that it was an ELF thing for 
OS's like Solaris and Linux, I didn't think it applied to AIX XCOFF.

Thanks for the help.  I'm all set.

Kevin

On Thursday, October 25, 2001, at 06:16  PM, Ian Lance Taylor wrote:

> Kevin Heatwole <kdh@ocsystems.com> writes:
>
>> I'm looking for the equivalent AIX ld to option
>> -blibpath:/lib:/usr/lib for GNU ld for AIX.  Specifically, I want to
>> override the default LIBPATH stored in executables to just look in the
>> directories "/lib:/usr/lib".
>
> I think -rpath will work, just as it does for ELF.
>
> Ian



More information about the Binutils mailing list