cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Compiling Error for solaris7.0

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 4 Nov 2003 08:28:19 +0100 (CET)

On Tue, 4 Nov 2003, Daniel Stenberg wrote:

> It means that it didn't find the zlib library at link time. The configure
> script found it and enabled the use of it, but when it came to linking it
> somehow doesn't find it.
>
> You can fix this by setting up your LD_LIBRARY_PATH (or similar) to include
> the path of your zlib

Argh. I'm confused. The LD_LIBARY_PATH will be used for run-time linking, for
link-time linking you can simply provide the path to the zlib library with the
-L flag. Provide the correct path when you invoke configure, like this:

 LDFLAGS=-L/path/to/my/zlib ./configure

(your particular shell might in fact require a different syntax, but I guess
you get the idea anyway)

-- 
 Daniel - been obfuscating curl source code since 1998.
 [[ Do not post private mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Received on 2003-11-04