[stunnel-users] patch to build stunnel 4.15 with VS2005

David Gillingham dgillingham+stunnel at gmail.com
Thu Jun 29 18:45:43 CEST 2006


Surely.  Here are the contents of the patch file for vs.mak.
>cat 4.15-MSVC2005.patch
diff -cr stunnel-4.15-orig/src/vc.mak stunnel-4.15/src/vc.mak
*** stunnel-4.15-orig/src/vc.mak	Sat Jan 21 10:17:32 2006
--- stunnel-4.15/src/vc.mak	Thu Jun 29 17:31:43 2006
***************
*** 1,2 ****
! # makefile for VC is not ready...

--- 1,42 ----
! # Simple Makefile.w32 for stunnel.exe by Michal Trojnara 1998-2006
! #
! # Modified by David Gillingham (dgillingham at gmail.com) for Visual
! # Studio

+ # Modify this to point to your actual openssl compile directory
+ # (You did already compile openssl, didn't you???)
+ SSLDIR=..\openssl-0.9.7j
+
+ OBJS=stunnel.obj ssl.obj ctx.obj file.obj client.obj protocol.obj \
+ 	sthreads.obj log.obj options.obj network.obj resolver.obj \
+ 	gui.obj
+ 	
+ CC=cl
+ CFLAGS=-MD -W3 -Ox -O2 -Ob2 -Gs0 -GF -Gy -GL -nologo \
+ 	-I"$(SSLDIR)\inc32" $(DEFINES)
+ DEFINES=-DUSE_WIN32 -D_CRT_SECURE_NO_DEPRECATE \
+ 	-D_CRT_NONSTDC_NO_DEPRECATE -DHAVE_GETADDRINFO \
+ 	-DHAVE_GETNAMEINFO -D_MBCS
+
+ LINK=link
+ LDFLAGS=-INCREMENTAL:NO -NOLOGO -SUBSYSTEM:WINDOWS -OPT:REF \
+ 	-OPT:ICF -LTCG -MACHINE:X86 -ERRORREPORT:PROMPT
+ LIBS=-LIBPATH:"$(SSLDIR)\out32dll" wsock32.lib ssleay32.lib \
+ 	libeay32.lib user32.lib gdi32.lib shell32.lib comdlg32.lib \
+ 	advapi32.lib
+
+ all: stunnel.exe
+
+ clean:
+ 	del $(OBJS) resources.res
+ 	del *.manifest
+ 	del stunnel.exe
+
+ stunnel.exe: $(OBJS) resources.res
+ 	$(LINK) $(LDFLAGS) $(LIBS) -OUT:$@ $**
+ 	IF EXIST [email protected] mt -nologo -manifest [email protected] -outputresource:$@;1
+
+ resources.res: resources.rc resources.h stunnel.ico
+ 	rc -fo $@ resources.rc
+
+ $(OBJS): *.h vc.mak


On 6/29/06, Michal Trojnara <Michal.Trojnara at mobi-com.net> wrote:
>
> That's possible.  Could you prepare a patch with a minimal set of
> changes (not including anything needed to build those Unix-specific files?).



More information about the stunnel-users mailing list