RPATH? Was: Re: CMake build system progress

Felix Salfelder <[email protected]>
Newsgroups gmane.comp.gnu.gnucap.devel
Message-ID <[email protected]>
On Sat, May 24, 2014 at 05:12:23PM +0200, Felix Salfelder wrote:
> now the situation after "make install", prefix is /tmp/cgc.
> $ chrpath /tmp/cgc/bin/gnucap
> /tmp/cgc/bin/gnucap: no rpath or runpath tag found.
> 
> suboptimal and gives
> 
> $ ldd /tmp/cgc/bin/gnucap
>         linux-vdso.so.1 (0x00007fff82bff000)
>         libgnucap.so => not found
>         [..]

i need to correct myself: perhaps this one is okay. maybe it's a matter
of taste. i'm slightly biased towards (always) adding the RPATH, but it
looks more important to agree about what the default should be.

[ ] add rpath to (installed) gnucap binary, pointing to the directory
    containing libgnucap.*. this is not always necessary (c.f.
    /etc/ld.so.conf), but useful anyway.

[ ] no rpath for (installed) gnucap binary. lets assume everyone knows
    how to tune $libdir, linker configuration or environment variables.
	 (this is the situation in the old build system, and also the
	 autotools branch build system).

what do you think?

thanks
felix
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.