[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -Wl,-rpath question

From: Bob Friesenhahn
Subject: Re: -Wl,-rpath question
Date: Sat, 17 May 2003 13:44:15 -0500 (CDT)

I am supprized that this posting has not caused a flurry of responses
since use of -R is a deeply religious issue.  There are many who are
adamantly opposed to using it since they believe that using a library
run-path can cause problems if the library is copied to a different
system, the library dependencies change due to a dependent library, or
the environment of the library changes.  They believe that the run
path should either be specified by the user, or be dictated by
operating system configuration so that it can be tailored to the
run-time environment.  This argument makes a lot of sense for many
open-sourced operating sysems, or in networked environments.

Libtool does preserve any -R arguments in the dependency_libs
parameter of the installed .la file.  Pre-compiled packages which
don't include -R in the .la file have decided not to supply it.


On Sat, 17 May 2003, Patrick Welche wrote:

> This is probably in a manual, but I don't see where...
> Quite a few packages using autotools seem to have the correct -L, but no
> -Wl,-R. Is it up to libtool to know whether an associated -rpath is
> necessary for each -L? or is it something one has to somehow write in
> ? (One has me pondering as it has -L/usr/local/lib 
> -R/usr/local/lib
> to get libjpeg, but only -L/usr/X11R6/lib so I end up editing the Makefiles
> by hand - this is obviously not the right long term fix, and certainly
> not something I could send in as a patch..)
> Cheers,
> Patrick
> _______________________________________________
> Libtool mailing list
> address@hidden

Bob Friesenhahn

reply via email to

[Prev in Thread] Current Thread [Next in Thread]