Operating System - HP-UX
1834950 Members
2320 Online
110071 Solutions
New Discussion

Re: remove search paths from 64bit links?

 
Randy_9
Regular Advisor

remove search paths from 64bit links?

One of our developers needs to figure out if this can be done, a excert from his message:

It appears that there is no way to remove search paths from 64 bit links.

Please try the UX test again with environment VAR settings if possible applicable.

32 bit VAR is SHLIB_PATH 64 bit VAR is LD_LIBRARY_PATH.

This may not be applicable to a priv, application. Please try and RSVP asap thanks

But this is the data I glean from the LD command used to link the C shared libs.

That is the problem with the HP links, there is no runpath specified for either 32 bit nor 64 bit clinks. The LD command obviously has different default options in the two modes. So far I have not been able to locate a specifiable option to suppress the inclusion of the build -L paths for shared libs into the binary for the 64 bit links, it does not include them in the 32 bit links.

If any one has more info I would appreciate it.

Thanks,

Randy
1 REPLY 1
Mike Stroyan
Honored Contributor

Re: remove search paths from 64bit links?

You can use -Wl,+nodefaultrpath to suppress the
-L paths. The feature appeared in 11.00 patches, but is only documented in new manuals such as-
http://www.docs.hp.com./cgi-bin/onlinedocs.py?mpn=B9106-90007&service=hpux&path=00/01/163&title=HP-UX%2011i%20Version%201.5%20Reference%20Volume%201%2C%20Section%201