Re: ld.so question (fwd)

Date view Thread view Subject view Author view

From: Godmar Back (gback@cs.utah.edu)
Date: Tue Jan 26 1999 - 19:54:35 EST


 Alexandre, can you comment on this?

Forwarded message:
> From mcq@cs.utah.edu Tue Jan 26 17:41:36 1999
> From: John McQ <mcq@cs.utah.edu>
> Message-Id: <199901270041.RAA00449@epic.cs.utah.edu>
> Subject: Re: ld.so question
> In-Reply-To: <199901270020.RAA21703@sal.cs.utah.edu> from Godmar Back at "Jan 26, 1999 5:20:37 pm"
> To: gback@cs.utah.edu (Godmar Back)
> Date: Tue, 26 Jan 1999 17:41:35 -0700 (MST)
> Cc: cslwiz@fast.cs.utah.edu
> X-Mailer: ELM [version 2.4ME+ PL48 (25)]
> MIME-Version: 1.0
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 7bit
>
> Godmar> Suppose you download Kaffe and you don't have a package for it and
> Godmar> you do a --prefix=/opt/kaffe and you run as root: should it run
> Godmar> ldconfig -m or not?
>
> That's what LD_RUN_PATH is for. The deal is:
>
> 1) Build all the .so's, and install them to /opt/kaffe/lib
>
> 2) export LD_RUN_PATH=/opt/kaffe/lib
>
> 3) Link your executable with gcc of the form:
>
> gcc -o kaffe <OBJS> -L/opt/kaffe/lib -l<lib> (etc).
>
> The LD_RUN_PATH gets embedded in the "kaffe" executable as the *first* place
> to look for .so's when trying to link at loadtime. You don't need to set a
> LD_LIBRARY_PATH, nor do you need to edit your global ld.so.conf, so long as
> the .so's continue to be available in /opt/kaffe/lib.
>
> This works in Linux and SVR4; I dunno about BSD. You needn't be root to do
> this.
>
> Helpful?
>
> -mcq
>


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:49 EDT