cURL / Mailing Lists / curl-library / Single Mail

curl-library

Changes to makefiles for Windows

From: Dylan Ellicott <dne_at_ca.stilo.com>
Date: 21 Oct 2003 11:50:59 -0400

Hi,

I had the need to build a version of curl that could be statically
linked into an application while openssl was dynamically linked in,

This was trivial on all the unix platforms however on windows the Curl
targets did not exist,

What follows is the changes that were necessary for it to work, and I
thought that these might be useful to someone else, as for example if a
new security exploit is found in OpenSSL users of an application may
want to upgrade the version of OpenSSL which they are using. Anyway here
are the changes that were necessary, The modifications were done on
7.10.7

Chnages to the file curl-7.10.7\Makefile

61a62,67
> vc-libcurl-ssl-dll:
> cd lib
> nmake -f Makefile.vc6 cfg=release-libcurl-ssl-dll
> cd ..\src
> nmake -f Makefile.vc6
>

Changes to the file curl-7.10.7\lib\Makefile.vc6

29,31d28
< # 10.14.2003 Added a target release-libcurl-ssl-dll which
< # is intended to allow static linking of libcurl with
dynamic
< # linking of openssl
101,113d97
< LINKLIBS = $(LINKLIBS) $(SSLLIBS)
< CC = $(CCNODBG) $(CFLAGSSSL)
< CFGSET = TRUE
< !ENDIF
<
< ######################
< # release-libcurl-ssl-dll
<
< !IF "$(CFG)" == "release-libcurl-ssl-dll"
< TARGET =$(LIB_NAME).lib
< DIROBJ =.\$(CFG)
< LFLAGSSSL = "/LIBPATH:$(OPENSSL_PATH)/out32dll"
< LNK = $(LNKLIB) $(LFLAGSSSL) /out:$(TARGET)

Hope this is of some use to someone, and I would love it if these made
it into the mainline of some future release

-Dylan

-- 
Dylan Ellicott <dne_at_ca.stilo.com>
Stilo Corporation
-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
Received on 2003-10-21