cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: libcurl as static library

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 13 Sep 2010 19:20:29 +0200 (CEST)

On Mon, 13 Sep 2010, Cristina Gil wrote:

> Which commands do I need to compile/link statically libcurl to my program?

'man ld' or 'man gcc' or 'man cc' or otherwise read the manual for the
linker/compiler for your environment.

With some compilers you can do -static and some have -Bstatic. The main
problem tend to be that you need to provide all the dependencies manually when
you link statically.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
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 2010-09-13