cURL / Mailing Lists / curl-users / Single Mail

curl-users

cURL tool static build

From: Ciprian Dorin, Craciun <ciprian.craciun_at_gmail.com>
Date: Tue, 1 Dec 2009 19:28:36 +0200

    Hello all!

    I know that this question has been made thousands of times on the
mailing list, but here goes again :)...

    How do I make curl compile statically? (I mean the curl tool, not
another executable that uses libcurl).

    I've tried the following combinations:
~~~~
./configure --disable-shared --enable-static
~~~~
export LDFLAGS=-static
./configure --disable-shared --enable-static
~~~~
export LIBS=-static
./configure --disable-shared --enable-static
~~~~
export LDFLAGS=-static
export LIBS=-static
./configure --disable-shared --enable-static
~~~~
export CFLAGS=-static
export LDFLAGS=-static
export LIBS=-static
./configure --disable-shared --enable-static
~~~~
    (and some other combinations...)

    Am I doing something wrong?

    Thanks,
    Ciprian.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-01