cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3535977 ] question regarding Windows vc10 build file

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 18 Jun 2012 05:21:59 -0700

Bugs item #3535977, was opened at 2012-06-18 05:21
Message generated for change (Tracker Item Submitted) made by kdekker
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3535977&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: compile or build problem
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: kdekker (kdekker)
Assigned to: Daniel Stenberg (bagder)
Summary: question regarding Windows vc10 build file

Initial Comment:
During build of static cURL library e.g. release-ssl-ssh2-zlib config, the makefile contains a variable RESOURCE. Strange enough, this variable is only set for two static library configurations. As a result of setting this variable, the objects of the mentioned paths are appended to the cURL static library.

This causes at least two problems:
- the zlib was built with /Zi option, but the cURL library (at default for release builds) not. This raised LNK4099 warnings for all zlib objects
- the curl static library became bigger, and even worse may contain older/other zlib objects. I would not expect zlib (nor any other object not being part of curl) in this static library.

I made a little change in Makefile.vc10, the diff is below:

{{{
241d240
< RESOURCE = $(LIBSSH2_PATH)/Release/src/libssh2.lib $(ZLIB_PATH)/zlib.lib
256d254
< RESOURCE = $(LIBSSH2_PATH)/Release/src/libssh2.lib $(ZLIB_PATH)/zlib.lib
}}}

Removing the RESOURCE makefile variable for static cURL library targets prevents (at least with Visual Studio 2010 link /lib command) to include the objects in the mentioned (static) libraries of zlib and libssh2. Note that the OpenSSL objects were never included in the RESOURCE makefile variable (I don't know why).

I expect that users who built libCURL with any (e.g. ssh2/openssl/zlib) support, know that they have to add the (static) libraries in their link command of their own application. This is somewhat different than on UNIX, where curl-config constructs a proper link path... However, there are much other things where Windows differs from UNIX, so this one should not make much sense.

The complete Makefile.vc10 is added for your convience.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3535977&group_id=976
Received on 2012-06-18

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET