cURL / Mailing Lists / curl-library / Single Mail

curl-library

Building the static libcurl and $LIBS

From: Mason <mpeg.blue_at_free.fr>
Date: Thu, 08 Mar 2012 18:23:24 +0100

Hello,

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 ?

*** Warning: Trying to link with static lib archive lwip_files/lwip.a.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because the file extensions .a of this argument makes me believe
*** that it is just a static archive that I should not use here.

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?

Is there a separate environment variable, along the lines of
LIBS_ONLY_FOR_CONFIGURE_TESTS ? :-)

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