Re: [PORTS] Shared library search paths
Thomas Lockhart <lockhart@alumni.caltech.edu>
From: Thomas Lockhart <lockhart@alumni.caltech.edu>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: PostgreSQL Development <pgsql-hackers@postgresql.org>, pgsql-ports@postgresql.org
Date: 2000-07-19T01:52:10Z
Lists: pgsql-hackers
> Some platforms (OSF/cc, HPUX) are already using -rpath or equivalent, so
> you don't have to specify a shared library search path at runtime. I think
> that a lot more platforms could use this. Can people comment on whether
> and how it works on their platform? Essentially,
> LDFLAGS+=-rpath '$(libdir)'
For linux (at least gcc 2.7.x and 2.95.2 systems):
if specified in the compilation step,
-Wl,-rpath $(libdir)
or if specified directly to the linker
-rpath $(libdir)
- Thomas