cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How to get a statically linked curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 3 Jun 2003 15:47:54 +0200 (CEST)

On Mon, 2 Jun 2003, Torsten Foertsch wrote:

> is there a simple way to create a statically linked curl, if possible even
> with diet libc?

Uhm, you can probably set it up like this:

$ ./configure
$ make curl_LDFLAGS=-all-static

This builds curl with the '-all-static' passed to libtool. If you want other
specific options passed to the build process (like diet libc), I think you
could just add them to that variable and have it build fine.

Then, to make a dynamic version, move the static src/curl executable and just
do:

$ make

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Received on 2003-06-03