The following bug has been logged online:
Bug reference: 2159
Logged by: Henry B. Hotz
Email address: hotz@jpl.nasa.gov
PostgreSQL version: 8.1.1
Operating system: Solaris 9
Description: Run-time library path not set
Details:
When the --with-libraries=<dir>:<dir>... configure option is used it should
set not only -L<dir> options, but -R<dir> options as well. If this is not
done then the resulting binaries and libraries cannot be used unless the
user sets corresponding LD_LIBRARY_PATH and/or LD_RUN_PATH environment
variables. If it is done, then the requirement goes away.
If it is done then you can *still* use the shared libraries (e.g. for make
check) by setting LD_RUN_PATH to their current location even if they are not
"where they belong".