fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / openssl / opensslwnt.patch
blobe033d25f602fd1b51600d32e1d849e0c2dca2368
1 --- misc/openssl-0.9.8v/crypto/x509v3/v3_pci.c 2007-03-05 01:06:47.000000000 +0100
2 +++ build/openssl-0.9.8v/crypto/x509v3/v3_pci.c 2010-03-26 12:04:20.961547300 +0100
3 @@ -3,7 +3,7 @@
4 * Contributed to the OpenSSL Project 2004 by Richard Levitte
5 * (richard@levitte.org)
6 */
7 -/* Copyright (c) 2004 Kungliga Tekniska Högskolan
8 +/* Copyright (c) 2004 Kungliga Tekniska Hoegskolan
9 * (Royal Institute of Technology, Stockholm, Sweden).
10 * All rights reserved.
12 --- misc/openssl-0.9.8v/crypto/x509v3/v3_pcia.c 2004-12-28 01:21:33.000000000 +0100
13 +++ build/openssl-0.9.8v/crypto/x509v3/v3_pcia.c 2010-03-26 12:04:20.961547300 +0100
14 @@ -3,7 +3,7 @@
15 * Contributed to the OpenSSL Project 2004 by Richard Levitte
16 * (richard@levitte.org)
18 -/* Copyright (c) 2004 Kungliga Tekniska Högskolan
19 +/* Copyright (c) 2004 Kungliga Tekniska Hoegskolan
20 * (Royal Institute of Technology, Stockholm, Sweden).
21 * All rights reserved.
23 --- misc/openssl-0.9.8v/ms/do_ms.bat 2009-07-28 14:51:19.000000000 +0200
24 +++ build/openssl-0.9.8v/ms/do_ms.bat 2010-03-26 12:19:19.399047300 +0100
25 @@ -1,11 +1,11 @@
27 -perl util\mkfiles.pl >MINFO
28 -perl util\mk1mf.pl no-asm VC-WIN32 >ms\nt.mak
29 -perl util\mk1mf.pl dll no-asm VC-WIN32 >ms\ntdll.mak
30 +%1 util\mkfiles.pl >MINFO
31 +if %2 == VC-WIN32 goto not64a
32 +perl ms\uplink.pl win64a > ms\uptable.asm
33 +ml64 -c -Foms\uptable.obj ms\uptable.asm
34 +:not64a
35 +%1 util\mk1mf.pl no-asm %2 >ms\nt.mak
36 +%1 util\mk1mf.pl dll no-asm %2 >ms\ntdll.mak
37 -if x%OSVERSION% == x goto skipce
38 -perl util\mk1mf.pl no-asm VC-CE >ms\ce.mak
39 -perl util\mk1mf.pl dll no-asm VC-CE >ms\cedll.mak
40 -:skipce
42 -perl util\mkdef.pl 32 libeay > ms\libeay32.def
43 -perl util\mkdef.pl 32 ssleay > ms\ssleay32.def
44 +%1 util\mkdef.pl 32 libeay > ms\libeay32.def
45 +%1 util\mkdef.pl 32 ssleay > ms\ssleay32.def
46 --- misc/openssl-0.9.8v/util/mk1mf.pl 2009-09-20 14:46:42.000000000 +0200
47 +++ build/openssl-0.9.8v/util/mk1mf.pl 2010-03-26 12:04:20.977172300 +0100
48 @@ -163,7 +163,7 @@
49 $inc_def="outinc";
50 $tmp_def="tmp";
52 -$perl="perl" unless defined $perl;
53 +$perl="$ENV{PERL}" unless defined $perl;
54 $mkdir="-mkdir" unless defined $mkdir;
56 ($ssl,$crypto)=("ssl","crypto");
57 @@ -343,6 +343,11 @@
58 chop;
60 ($key,$val)=/^([^=]+)=(.*)/;
62 + # On some Windows machines, $val has linefeeds at the end, which confuses
63 + # subsequent code in this file. So we strip all whitespace at the end.
64 + $val =~ s/\s+$//;
66 if ($key eq "RELATIVE_DIRECTORY")
68 if ($lib ne "")
69 @@ -469,7 +474,7 @@
70 # Set your compiler options
71 PLATFORM=$platform
72 CC=$bin_dir${cc}
73 -CFLAG=$cflags
74 +CFLAG=$cflags \$(SOLARINC)
75 APP_CFLAG=$app_cflag
76 LIB_CFLAG=$lib_cflag
77 SHLIB_CFLAG=$shl_cflag
78 @@ -484,7 +489,7 @@
80 LINK=$link
81 LFLAGS=$lflags
82 -RSC=$rsc
83 +RSC=$rsc \$(SOLARINC)
85 # The output directory for everything interesting
86 OUT_D=$out_dir
87 @@ -665,7 +670,7 @@
88 printf OUT <<EOF;
89 #ifdef $platform_cpp_symbol
90 /* auto-generated/updated by util/mk1mf.pl for crypto/cversion.c */
91 - #define CFLAGS "compiler: $cc $cflags"
92 + #define CFLAGS "compiler: $cflags"
93 #define PLATFORM "$platform"
94 EOF
95 printf OUT " #define DATE \"%s\"\n", scalar gmtime();
96 --- misc/openssl-0.9.8v/util/pl/VC-32.pl 2010-02-04 02:10:24.000000000 +0100
97 +++ build/openssl-0.9.8v/util/pl/VC-32.pl 2010-03-26 12:04:20.977172300 +0100
98 @@ -30,7 +30,7 @@
99 my $ff = "";
101 # C compiler stuff
102 -$cc='cl';
103 +$cc=$ENV{'CC'};
104 if ($FLAVOR =~ /WIN64/)
106 # Note that we currently don't have /WX on Win64! There is a lot of
107 @@ -114,7 +114,7 @@
110 $cc=($ENV{CC} or "cl");
111 - $base_cflags=' /W3 /WX /GF /Gy /nologo -DUNICODE -D_UNICODE -DOPENSSL_SYSNAME_WINCE -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DNO_CHMOD -DOPENSSL_SMALL_FOOTPRINT';
112 + $base_cflags=' -W3 -GF -Gy -nologo -DUNICODE -D_UNICODE -DOPENSSL_SYSNAME_WINCE -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DNO_CHMOD -DOPENSSL_SMALL_FOOTPRINT';
113 $base_cflags.=" $wcecdefs";
114 $base_cflags.=' -I$(WCECOMPAT)/include' if (defined($ENV{'WCECOMPAT'}));
115 $base_cflags.=' -I$(PORTSDK_LIBPATH)/../../include' if (defined($ENV{'PORTSDK_LIBPATH'}));
116 @@ -123,20 +123,21 @@
117 } else {
118 $base_cflags.=' /MC';
120 - $opt_cflags=' /O1i'; # optimize for space, but with intrinsics...
121 - $dbg_cflags=' /Od -DDEBUG -D_DEBUG';
122 + $opt_cflags=' -O1i'; # optimize for space, but with intrinsics...
123 + $dbg_cflags=' -Od -DDEBUG -D_DEBUG';
125 $lflags="/nologo /opt:ref $wcelflag";
127 else # Win32
129 $base_cflags= " $mf_cflag";
130 - my $f = $shlib || $fips ?' /MD':' /MT';
131 + my $f = $shlib || $fips ? (($ENV{MSVC_USE_DEBUG_RUNTIME} eq "TRUE") ? ' -MDd' : ' -MD' ):' -MT';
132 $ff = "/fixed";
133 - $opt_cflags=$f.' /Ox /O2 /Ob2';
134 - $dbg_cflags=$f.'d /Od -DDEBUG -D_DEBUG';
135 + $opt_cflags=$f.' -Ox -O2 -Ob2';
136 + $dbg_cflags=$f.'d -Od -DDEBUG -D_DEBUG';
137 $lflags="/nologo /subsystem:console /opt:ref";
139 -$lib_cflag='/Zl' if (!$shlib); # remove /DEFAULTLIBs from static lib
140 +$lib_cflag='-Zl' if (!$shlib); # remove /DEFAULTLIBs from static lib
141 $mlflags='';
143 $out_def ="out32"; $out_def.="dll" if ($shlib);
144 @@ -161,7 +162,7 @@
146 $obj='.obj';
147 $asm_suffix='.asm';
148 -$ofile="/Fo";
149 +$ofile="-Fo.\\";
151 # EXE linking stuff
152 $link="link";
153 --- build/openssl-0.9.8v/ms/uplink.c
154 +++ build/openssl-0.9.8v/ms/uplink.c
155 @@ -1,5 +1,6 @@
156 #if (defined(_WIN64) || defined(_WIN32_WCE)) && !defined(UNICODE)
157 # define UNICODE
158 +# define _CRT_NON_CONFORMING_SWPRINTFS
159 #endif
160 #if defined(UNICODE) && !defined(_UNICODE)
161 # define _UNICODE