curl / Mailing Lists / curl-library / Single Mail

curl-library

Re[4]: Static libcurl size under Windows

From: Konstantin Vlasov <flint_at_flint-inc.ru>
Date: Tue, 25 Apr 2017 17:21:35 +0300

Hi, Rod.

>> Maybe it's worth trying to build VB with that huge libcurl and see what
>> happens... But I wanted to check out what's happenning with libcurl first.

> If it's not too daunting a task I'd be tempted to do that.

> I'm hindered in that I don't build statically at all so my environment isn't
> set up but playing around at the edges does seems to indicate that the lib
> size isn't much bigger than the sum sizes of the objects.

> HOWEVER the lib link does include the SSL and ZLIB lines explicitly at the
> start of the command (the old build had them at the end), and that's pretty
> deeply integrated into the way that the build works. To tease that out one
> would need to split the CURL_LFLAGS from the LIB_LFLAGS and only add the
> dependant libs to the CUR_LFLAGS command.

Finally I found some time to try and build VBox, and funny thing, it compiled OK
even with the large libcurl libraries! Executable sizes did not change much
compared to the previous version.

Unfortunately, at the moment I have no other projects to test libcurl+openssl
with, so I don't know whether it's normal behavior or some explicit effort on
the part of VirtualBox developers to eliminate link-stage conflicts.

For my practical purposes that's good enough, though the question about
libcurl.lib size remains interesting, even if purely academical.

-- 
Bye.                                    With best regards,
                                        Konstantin Vlasov.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-04-25