[GRASS5] [bug #2544] (grass) grass libs built with paths to source tree, not install dir

Glynn Clements glynn.clements at virgin.net
Sun Jul 18 18:09:09 EDT 2004


Paul Kelly wrote:

> Please see the attached patch as a possible solution (includes some 
> changes to include/Make/Shlib.make that should hae been made at the same 
> time as the changhes to SC_CONFIG_CFLAGS last week.
> 
> The only reason I haven't applied it to CVS yet is that I remember some 
> discussion on the mailing list a while ago about the -rpath linker option 
> and whether it was a good or a bad idea (can't remember which).

On Linux, it's bad. It embeds the library search path into the binary,
and that path takes precedence over $LD_LIBRARY_PATH and ld.so.conf,
so you can't force the use of a different library directory at run
time (other than by deleting the libraries from the -rpath directory).

It is sometimes used as a brute-force "fix" by developers who have
become fed up with users who don't know how to make ld-linux.so look
in the right place for the libraries. IOW, eliminate any potential for
configuration problems by eliminating any potential for configuration.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list