Use relative rpath if possible - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Use relative rpath if possible
Date
Msg-id 935bc2f0-42f4-e5f5-9a00-b47fa2bfe221@2ndquadrant.com
Whole thread Raw
Responses Re: Use relative rpath if possible
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: GiST VACUUM
Next
From: Daniel Gustafsson
Date:
Subject: Re: Obsolete comment in commands/analyze.c