cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Building the static libcurl and $LIBS

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 8 Mar 2012 19:39:29 +0100

On Thu, Mar 08, 2012 at 06:23:24PM +0100, Mason wrote:
> I'm trying to build the static libcurl.
>
> In the configure script, I asked the linker to add the
> network stack library (where all the network related
> functions live) with
>
> ./configure LIBS="lwip_files/lwip.a" ...
>
> But when I try to build the library, it looks like the
> system is trying to cram lwip.a into libcurl.a ?

Are you sure? What are the commands libtool is running for this? I don't
think anything is ever linked into libcurl.a from another library, ever.

> How do I get configure to use the appropriate library
> when running the link tests, but the actual build should
> ignore whatever LIBS I provided to configure?

You could try adding "-Llwip_files -llwip" to LDFLAGS instead.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-03-08