The following bug has been logged online: Bug reference: 2170 Logged by: Lee Thompson Email address: [EMAIL PROTECTED] 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.]) ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend