cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Trying not to use LD_LIBRARY_PATH

From: tengel <tengel_at_sonic.net>
Date: Tue, 13 May 2003 15:00:30 -0700

First, export LD_LIBRARY_PATH and run ./configure as normal, to create the Makefile. Then, edit the Makefile's LDFLAGS (I think, going by memory here) to add "-rpath /usr/local/ssl/lib" onto it.

-rpath <directory> is a directive to the gcc linker to hardcode/embed that path into the resulting binary, instead of relying on it to be in LD_LIBRARY_PATH, etc. I might have the exact semantics wrong, it's been awhile...

-te

On Tue, May 13, 2003 at 09:37:54PM +0100, Perry, Kevin wrote:
> Hi
>
> I've built curl using gcc3.2.3 and openSSL 0.9.7
> If I set the LD_LIBRARY_PATH=/usr/local/ssl/lib then all works fine. How
> would I go about not having to set this variable, what options would I need
> to provide to configure/make. Would I need to edit the Makefile to include
> this library directory?
>
> Kevin Perry
> ****************************************************************************
> B&Q plc
> Registered Office: Portswood House, 1 Hampshire Corporate Park,
> Chandlers Ford, Eastleigh, Hampshire, SO53 3YX
> Buy Online NOW at http://www.diy.com
>
> Registered in England Number 973387
>
> This e-mail is only intended for the person(s) to whom it is addressed and
> may contain confidential information. Unless stated to the contrary, any
> opinions or comments are personal to the writer and do not represent the
> official view of the company. If you have received this e-mail in error,
> please notify us immediately by reply e-mail and then delete this message
> from your system. Please do not copy it or use it for any purposes, or
> disclose its contents to any other person. Thank you for your co-operation.
> ****************************************************************************
>
>
>
>
>
> -------------------------------------------------------
> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
> The only event dedicated to issues related to Linux enterprise solutions
> www.enterpriselinuxforum.com

-- 
Troy Engel
GPG KeyID: DF3D5207
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
Received on 2003-05-14