cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: cURL tool static build

From: Ciprian Dorin, Craciun <ciprian.craciun_at_gmail.com>
Date: Wed, 2 Dec 2009 10:00:23 +0200

On Wed, Dec 2, 2009 at 8:31 AM, Pletter Thomas <T.Pletter_at_rewe-group.at> wrote:
> hello,
>
> I had also the same problem. I wanted to compile statically for HPUX and
> it only works with Environment Variable
> LD_LIBRARY_PATH. All options for "configure" have no influence for the
> compilation. So we created a fix in script "configure" !
> Then it works. If you want the fix, i can send it.
>
> regards,Tom
>
>
> -----Original Message-----
> From: curl-users-bounces_at_cool.haxx.se
> [mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of Ciprian Dorin,
> Craciun
> Sent: Tuesday, December 01, 2009 6:29 PM
> To: curl-users_at_cool.haxx.se
> Subject: cURL tool static build
>
>    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.

    Please send me that patch! (And also on the list, maybe others are
interested too.)

    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-02