1 --- misc/openssl-0.9.8v/Makefile.shared 2008-09-17 17:56:40.000000000 +0200
2 +++ misc/build/openssl-0.9.8v/Makefile.shared 2009-03-30 11:52:53.684538000 +0200
6 INHIBIT_SYMLINKS=yes; \
7 - SHLIB=cyg$(LIBNAME); SHLIB_SOVER=-$(LIBVERSION); SHLIB_SUFFIX=.dll; \
8 + SHLIB=cyg$(LIBNAME); SHLIB_SOVER=; SHLIB_SUFFIX=.dll; \
9 dll_name=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX; extras=; \
10 base=-Wl,--enable-auto-image-base; \
11 if expr $(PLATFORM) : 'mingw' > /dev/null; then \
14 extras="$(LIBNAME).def"; \
15 $(PERL) util/mkdef.pl 32 $$SHLIB > $$extras; \
16 - base=; [ $(LIBNAME) = "crypto" ] && base=-Wl,--image-base,0x63000000; \
18 + if test $(LIBNAME) = "crypto"; then \
20 + base=-Wl,--image-base,0x63000000; \
23 dll_name=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX; \
24 $(PERL) util/mkrc.pl $$dll_name | \
26 extras="$$extras rc.o"; \
27 ALLSYMSFLAGS='-Wl,--whole-archive'; \
28 NOALLSYMSFLAGS='-Wl,--no-whole-archive'; \
29 - SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared $$base -Wl,-s,-Bsymbolic -Wl,--out-implib,lib$(LIBNAME).dll.a $$extras"; \
30 + SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS) -shared $$base -Wl,-s,-Bsymbolic -Wl,--export-all-symbols -Wl,--out-implib,lib$(LIBNAME).dll.a $$extras"; \
31 [ -f apps/$$dll_name ] && rm apps/$$dll_name; \
32 [ -f test/$$dll_name ] && rm test/$$dll_name; \
33 $(LINK_SO_A) || exit 1; \
34 --- misc/openssl-0.9.8v/e_os2.h 2005-12-19 03:57:07.000000000 +0900
35 +++ misc/build/openssl-0.9.8v/e_os2.h 2009-04-04 23:07:15.324250000 +0900
37 # ifdef OPENSSL_EXPORT_VAR_AS_FUNCTION
38 # define OPENSSL_IMPLEMENT_GLOBAL(type,name,value) \
39 type *_shadow_##name(void) \
40 - { static type _hide_##name=value; return &_hide_##name; }
41 + { type _hide_##name=value; return &_hide_##name; }
42 # define OPENSSL_DECLARE_GLOBAL(type,name) type *_shadow_##name(void)
43 # define OPENSSL_GLOBAL_REF(name) (*(_shadow_##name()))
45 --- misc/openssl-0.9.8v/ms/mingw32.bat 2006-05-05 15:19:32.000000000 +0200
46 +++ misc/build/openssl-0.9.8v/ms/mingw32.bat 2009-03-30 11:54:10.000000000 +0200
48 rem copy ms\tlhelp32.h outinc
50 echo Building the libraries
51 -mingw32-make -f ms/mingw32a.mak
52 +make -f ms/mingw32a.mak
53 if errorlevel 1 goto end
55 echo Generating the DLLs and input libraries
56 -dllwrap --dllname libeay32.dll --output-lib out/libeay32.a --def ms/libeay32.def out/libcrypto.a -lws2_32 -lgdi32
57 +mv out/libcrypto.a out/libcrypto_static.a
58 +mv out/libssl.a out/libssl_static.a
59 +dlltool --dllname libeay32.dll --output-lib out/libcrypto.a --input-def ms/libeay32.def
60 if errorlevel 1 goto end
61 -dllwrap --dllname libssl32.dll --output-lib out/libssl32.a --def ms/ssleay32.def out/libssl.a out/libeay32.a
62 +gcc --shared --enable-pseudo-reloc -Wl,-Map,out/libeay32.map ms/libeay32.def -o out/libeay32.dll out/libcrypto_static.a -lws2_32 -lgdi32
63 if errorlevel 1 goto end
64 +dlltool --dllname ssleay32.dll --output-lib out/libssl.a --input-def ms/ssleay32.def
65 +if errorlevel 1 goto end
66 +if "%MINGW_SHARED_GXXLIB%"=="TRUE" goto shared_gxxlib
67 +if "%MINGW_SHARED_GCCLIB%"=="TRUE" goto shared_gcclib
68 +gcc --shared --enable-pseudo-reloc -Wl,-Map,out/libeay32.map ms/libeay32.def -o out/libeay32.dll out/libcrypto_static.a -lws2_32 -lgdi32
69 +if errorlevel 1 goto end
70 +gcc --shared --enable-pseudo-reloc -Wl,-Map,out/ssleay32.map -Lout ms/ssleay32.def -o out/ssleay32.dll out/libssl_static.a -lcrypto
71 +if errorlevel 1 goto end
75 +gcc --shared -shared-libgcc --enable-pseudo-reloc -Wl,-Map,out/libeay32.map ms/libeay32.def -o out/libeay32.dll out/libcrypto_static.a -lws2_32 -lgdi32
76 +if errorlevel 1 goto end
77 +gcc --shared -shared-libgcc --enable-pseudo-reloc -Wl,-Map,out/ssleay32.map -Lout ms/ssleay32.def -o out/ssleay32.dll out/libssl_static.a -lcrypto
78 +if errorlevel 1 goto end
82 +gcc --shared -shared-libgcc --enable-pseudo-reloc -Wl,-Map,out/libeay32.map ms/libeay32.def -o out/libeay32.dll out/libcrypto_static.a -lws2_32 -lgdi32 %MINGW_SHARED_LIBSTDSPP%
83 +if errorlevel 1 goto end
84 +gcc --shared -shared-libgcc --enable-pseudo-reloc -Wl,-Map,out/ssleay32.map -Lout ms/ssleay32.def -o out/ssleay32.dll out/libssl_static.a -lcrypto %MINGW_SHARED_LIBSTDSPP%
85 +if errorlevel 1 goto end
89 echo Done compiling OpenSSL
92 --- misc/openssl-0.9.8v/util/pl/Mingw32.pl 2006-05-05 15:19:34.000000000 +0200
93 +++ misc/build/openssl-0.9.8v/util/pl/Mingw32.pl 2009-03-30 11:55:04.000000000 +0200
111 ($Name=$name) =~ tr/a-z/A-Z/;
113 $ret.="$target: \$(${Name}OBJ)\n";
114 - $ret.="\tif exist $target \$(RM) $target\n";
115 + $ret.="\t\$(RM) $target\n";
116 +# $ret.="\tif exist $target \$(RM) $target\n";
117 $ret.="\t\$(MKLIB) $target \$(${Name}OBJ)\n";
118 $ret.="\t\$(RANLIB) $target\n\n";