Rich Teer wrote:
> On Mon, 18 Aug 2008, Joachim Worringen wrote:
> 
>> our software stack is installed to /opt/DIS, and contains some libraries 
>> that everyone should be able to use w/o setting LD_LIBRARY_PATH. This 
>> can easily be achieved using "crle -l /opt/DIS/lib -u"  in the 
>> installation script/package (same thing for 64bit).
>>
>> If this is the right way to *add* the path - what is the right way to 
>> *remove* it on uninstall? crle does not seem to provide such an option, 
>> /var/ld/ld.config is a binary file (why the hell...?), and parsing the 
>> output of "crle" is not what I consider a solid solution.
>>
>> Any recommendations?
> 
> Yes; don't do the crle thing in the first place when installing your
> package.  Encourage developers who use your libraries to link their
> apps correctly, using -R/opt/DIS/lib.
> 
> HTH,

Unfortunately, not (like all the other -R approaches), as the library in 
question is for LD_PRELOAD usage (for socket acceleration). Please spare 
any "LD_PRELOAD is bad" comments as they are not helpful in this context.

We could of course do some link magic from /usr/lib[/64] - anything else?

  Joachim

-- 
Joachim Worringen, Software Architect, Dolphin Interconnect Solutions
phone ++49/(0)228/324 08 17 - http://www.dolphinics.com
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to