rebased patch attached, no functionality changes
On 2019-06-27 13:45, Peter Eisentraut wrote:
> On several popular operating systems, we can use relative rpaths, using
> the $ORIGIN placeholder, so that the resulting installation is
> relocatable. Then we also don't need to set LD_LIBRARY_PATH during make
> check.
>
> This implementation will use a relative rpath if bindir and libdir are
> under the same common parent directory.
>
> Supported platforms are: freebsd, linux, netbsd, openbsd, solaris
>
> Information from https://lekensteyn.nl/rpath.html
>
> (Yes, something for macOS would be nice, to work around SIP issues, but
> I'll leave that as a separate future item.)
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services