1 --- misc/openssl-0.9.8k/Makefile.shared 2008-09-17 17:56:40.000000000 +0200
2 +++ misc/build/openssl-0.9.8k/Makefile.shared 2009-03-30 11:52:53.684538000 +0200
5 base=-Wl,--enable-auto-image-base; \
6 if expr $(PLATFORM) : 'mingw' > /dev/null; then \
7 - SHLIB=$(LIBNAME)eay32; base=; \
8 + SHLIB=$(LIBNAME)eay32; \
10 + if test $(LIBNAME) = "crypto"; then \
12 + base=-Wl,--image-base,0x63000000; \
16 LIBVERSION="$(LIBVERSION)"; \
17 - SHLIB_SOVER=${LIBVERSION:+"-$(LIBVERSION)"}; \
19 ALLSYMSFLAGS='-Wl,--whole-archive'; \
20 NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
21 - SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared $$base -Wl,-Bsymbolic -Wl,--out-implib,lib$(LIBNAME).dll.a"; \
22 + SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared $$base -Wl,-Bsymbolic -Wl,--export-all-symbols -Wl,--out-implib,lib$(LIBNAME).dll.a"; \
26 --- misc/openssl-0.9.8k/ms/mingw32.bat 2006-05-05 15:19:32.000000000 +0200
27 +++ misc/build/openssl-0.9.8k/ms/mingw32.bat 2009-03-30 11:54:10.000000000 +0200
29 rem copy ms\tlhelp32.h outinc
31 echo Building the libraries
32 -mingw32-make -f ms/mingw32a.mak
33 +make -f ms/mingw32a.mak
34 if errorlevel 1 goto end
36 echo Generating the DLLs and input libraries
37 -dllwrap --dllname libeay32.dll --output-lib out/libeay32.a --def ms/libeay32.def out/libcrypto.a -lwsock32 -lgdi32
38 +mv out/libcrypto.a out/libcrypto_static.a
39 +mv out/libssl.a out/libssl_static.a
40 +dlltool --dllname libeay32.dll --output-lib out/libcrypto.a --input-def ms/libeay32.def
41 if errorlevel 1 goto end
42 -dllwrap --dllname libssl32.dll --output-lib out/libssl32.a --def ms/ssleay32.def out/libssl.a out/libeay32.a
43 +gcc --shared --enable-pseudo-reloc -Wl,-Map,out/libeay32.map ms/libeay32.def -o out/libeay32.dll out/libcrypto_static.a -lwsock32 -lgdi32
44 +if errorlevel 1 goto end
45 +dlltool --dllname ssleay32.dll --output-lib out/libssl.a --input-def ms/ssleay32.def
46 +if errorlevel 1 goto end
47 +gcc --shared --enable-pseudo-reloc -Wl,-Map,out/ssleay32.map -Lout ms/ssleay32.def -o out/ssleay32.dll out/libssl_static.a -lcrypto
48 if errorlevel 1 goto end
50 echo Done compiling OpenSSL
51 --- misc/openssl-0.9.8k/util/pl/Mingw32.pl 2006-05-05 15:19:34.000000000 +0200
52 +++ misc/build/openssl-0.9.8k/util/pl/Mingw32.pl 2009-03-30 11:55:04.000000000 +0200
70 ($Name=$name) =~ tr/a-z/A-Z/;
72 $ret.="$target: \$(${Name}OBJ)\n";
73 - $ret.="\tif exist $target \$(RM) $target\n";
74 + $ret.="\t\$(RM) $target\n";
75 +# $ret.="\tif exist $target \$(RM) $target\n";
76 $ret.="\t\$(MKLIB) $target \$(${Name}OBJ)\n";
77 $ret.="\t\$(RANLIB) $target\n\n";