cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: compile libcurl with static zlib and static openssl

From: teach me <sw.teach.me_at_gmail.com>
Date: Mon, 8 Dec 2014 22:06:45 +0200

After looking for the correct line all day long I came up with this:

$ *CPPFLAGS="-I$HOME/zlib-1.2.8 -I$HOME/openssl-1.0.1j
-I$HOME/openssl-1.0.1j/include" LDFLAGS="-L$HOME/zlib-1.2.8
-L$HOME/openssl-1.0.1j" LIBS="-ldl" ./configure --disable-shared
--with-zlib --with-ssl*

I had to add:
LIBS="-ldl" as you mentioned

CPPFLAGS points to:
    -I$HOME/zlib-1.2.8 (zlib headers and *.a)
    -I$HOME/openssl-1.0.1j (openssl *.a)
    -I$HOME/openssl-1.0.1j/include (openssl headers)

LDFLAGS points to:
    -L$HOME/zlib-1.2.8 (zlib *.a)
    -L$HOME/openssl-1.0.1j (openssl *.a)

Problem solved,
    Thanks Daniel.

On Mon, Dec 8, 2014 at 1:46 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Mon, 8 Dec 2014, teach me wrote:
>
> This is the configure line I tried
>> $ cd ~/curl-7.39.0
>> $ ./configure --disable-shared --with-zlib=$HOME/zlib-1.2.8
>> --with-ssl=$HOME/openssl-1.0.1j
>>
>
> The clues are in config.log so check that for when the tests fail.
>
> openssl requires -ldl to work statically so LIBS="-ldl" ./configure ... is
> at least one thing you need. Possibly it is the only thing missing.
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-12-08