Right.
./configure ...
LD_RUN_PATH=<path_to_libs> make
... does exactly what you want.
For example,
I install all third-party software that I have to build in
/usr/pkg/<software>. I symbolically link all of that stuff to
/usr/local (e.g. /usr/local/sbin/cfrun ->
/usr/pkg/cfengine/sbin/cfrun).
Most of my make steps are:
LD_RUN_PATH=/usr/local/lib make
No LD_LIBRARY_PATH needed.
Brian
======================================================================
On Mon, Nov 28, 2005 at 11:21:23PM -0500, Jason Martin wrote:
> LD_LIBRARY_PATH only affects runtime; since I can't set that
> value on all the clients, I instead need to have the binary look
> in the correct location inherently.
>
> -Jason Martin
>
> On Mon, Nov 28, 2005 at 08:17:32PM -0800, Brian C. Hill wrote:
> > LD_RUN_PATH works for at least both Linux and SunOS 5 (Solaris 2),
> > since -R<path> isn't a Linux ld directive.
> >
> > Brian
> > ======================================================================
> > On Mon, Nov 28, 2005 at 05:01:38PM -0800, David Masterson wrote:
> > > It would seem that the most crossplatform standard way would be to set
> > > LD_LIBRARY_PATH in configure.ac during the processing to search for the
> > > BerkeleyDB library.
> > > --
> > > David Masterson
> > > Palo Alto, CA
> >
> >
> > _______________________________________________
> > Help-cfengine mailing list
> > [email protected]
> > http://lists.gnu.org/mailman/listinfo/help-cfengine
>
> --
> A Shower is the halfway point between Bed and World.
> This message is PGP/MIME signed.
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-cfengine
--
_____________________________________________________________________
/ Brian C. Hill [EMAIL PROTECTED] http://brian.bch.net \
| UNIX Specialist BCH Technical Services http://www.bch.net |
_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine