Hi Alan,


Ah, I overlooked that option. Thanks, I will give that a try.



> -----Original Message-----
> From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca]
> Sent: Friday, February 20, 2015 7:08 PM
> To: Arjen Markus
> Cc: plplot-devel@lists.sourceforge.net
> Subject: Re: [Plplot-devel] Configuration question for Linux: how not to use 
> -rpath?
>
> On 2015-02-20 12:40-0000 Arjen Markus wrote:
>
> > I want to build PLplot on Linux in such a way that all the
> components (drivers and supporting libraries like nn and csa) are retrieved 
> via the
> LD_LIBRARY_PATH variable. The path must not be hard-coded. What CMake do
> we have for that?
>
> Use the cmake command-line option -DUSE_RPATH=OFF (which normally defaults
> to ON) for our build system in order to turn off setting rpath for our 
> installed libraries.
>
> This is necessary in order to allow LD_LIBRARY_PATH to work since the Unix 
> run-
> time loaders always ignore LD_LIBRARY_PATH for a particular library if rpath 
> is set
> for that library. This Linux behaviour of rpath (if set) always superseding
> LD_LIBRARY_PATH is inherited from POSIX.  There have been many debates
> about this behaviour in the Debian community because many there would prefer a
> different behaviour where (hard-coded) rpath was simply a last-resort if
> LD_LIBRARY_PATH was not set.  However, so far Debian (and the rest of Linux, I
> assume) continues to stick to the POSIX behaviour which is why you need to 
> set -
> DUSE_RPATH=OFF for the PLplot case if you want to use LD_LIBRARY_PATH.
>
>From the point of view of someone who needs to supply programs and libraries 
>to customers (both inside and outside the organisation), it seems much more 
>convenient to have LD_LIBRARY_PATH take priority.

Regards,

Arjen





DISCLAIMER: This message is intended exclusively for the addressee(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient please notify the sender immediately and destroy this message. 
Unauthorized use, disclosure or copying of this message is strictly prohibited. 
The foundation 'Stichting Deltares', which has its seat at Delft, The 
Netherlands, Commercial Registration Number 41146461, is not liable in any way 
whatsoever for consequences and/or damages resulting from the improper, 
incomplete and untimely dispatch, receipt and/or content of this e-mail.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to