cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl (cl tool) static linked

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 14 Oct 2011 15:06:33 -0700

On Fri, Oct 14, 2011 at 03:35:43PM +0200, Dominic Fischer wrote:
> for further analysis of crypto code inside nettle, gnutls and curl i'd like to
> compile all those things together in a static manner.
> that means, that i have a binary (curl) without any dependencies. 
>
> is this even possible? maybe with some ninja-configure/make-flags, or need it
> to be done manually.

Configuring with

  ./configure --disable-shared CFLAGS=-static

when building curl should do it, but for some reason libtool drops the
-static flag on my system when doing the final link. But give it a
try--it might just be a bug in my libtool.

>>> Dan
-------------------------------------------------------------------
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 2011-10-15