Re: Shared libs on Solaris (was: Re: [Exim] LD/Exim errors)

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jim Knoble
Dátum:  
Címzett: Exim Users
Tárgy: Re: Shared libs on Solaris (was: Re: [Exim] LD/Exim errors)
Circa 2001-Nov-14 14:33:28 -0500 dixit Peter Radcliffe:

: Jim Knoble <jmknoble@???> probably said:
: > Solaris doesn't really have an equivalent to ldconfig or /etc/ld.so.conf.
    [...]
: 
: As of Solaris 8 and later this is no longer true. crle lets you
: configure the runtime linking enviroment.


Ah. I've not had experience with v8 (we have slow-moving customers).
Gary, take note.

: > (1) The Easy Way: Set the 'LD_RUN_PATH' environment variable [...]
:
: "The evil hack way", and you probably meant LD_LIBRARY_PATH, not
: LD_RUN_PATH.

Argh, no. LD_LIBRARY_PATH has two horribly conflated uses (linktime
library path [-L] *and* runtime library path [-R]) and should never,
ever be used. Ever. Not even if you're Bruce Campbell and wearing a
chainsaw for a wristwatch. LD_RUN_PATH is supported by the runtime
linker at least as far back as Solaris 2.4, and is a slightly cleaner
form of evil.

: >   (2) The Right Way(TM): When linking the program, use the '-R <path>'
          [...]
: 
: Which is what I suggested earlier.


Ah; must have missed that in the flurry. Gary seemed to be still
confused about what to do....

: > Software that requires CDE or BrokenWindows gets a bit more complicated.
:
: Not really, I build them all the time with no problems. I have a
: good site.def so xmkmf things Just Work, otherwise it's a few more
: -R settings.

You must have a relatively recent Solaris. :)

--
jim knoble | jmknoble@??? | http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)