BUG #2170: --rpath option is skipping shared libs

From: "Lee Thompson" <bm55b(at)yahoo(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2170: --rpath option is skipping shared libs
Date: 2006-01-14 21:23:58
Message-ID: 20060114212358.ACC8EF0A7F@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2170
Logged by: Lee Thompson
Email address: bm55b(at)yahoo(dot)com
PostgreSQL version: 8.1.2
Operating system: linux
Description: --rpath option is skipping shared libs
Details:

I use the patch that I pasted into bug report web form (so spacing and lines
are probably going to garble some) to get postgres to add rpath hints into
the postgres shared libraries.

After patching and re-running autoconf/configure/make, you can test for
success of this change by running "eu-readelf -d filename.so" and look for
the rpath in the output of the utility.

diff -Nru postgresql-8.1.2.orig/configure.in postgresql-8.1.2/configure.in
--- postgresql-8.1.2.orig/configure.in 2006-01-12 12:48:05.000000000 -0600
+++ postgresql-8.1.2/configure.in 2006-01-12 13:23:25.000000000 -0600
@@ -357,6 +357,9 @@
# LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
for dir in $LIBRARY_DIRS $SRCH_LIB; do
if test -d "$dir"; then
+ if test "$enable_rpath" = yes ; then
+ LIBDIRS="$LIBDIRS -Wl,-R$dir"
+ fi
LIBDIRS="$LIBDIRS -L$dir"
else
AC_MSG_WARN([*** Library directory $dir does not exist.])

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message andrew5 2006-01-14 22:54:17 BUG #2171: Differences compiling plpgsql in ecpg and psql
Previous Message Tom Lane 2006-01-14 17:57:36 Re: BUG #2168: 45.000.000 records too much?