]>
Commit | Line | Data |
---|---|---|
f4d8f037 | 1 | ## -*- mode: perl; -*- |
f09e7ca9 | 2 | ## Standard openssl configuration targets. |
f09e7ca9 | 3 | |
2fe73036 RL |
4 | # Helper functions for the Windows configs |
5 | my $vc_win64a_info = {}; | |
6 | sub vc_win64a_info { | |
7 | unless (%$vc_win64a_info) { | |
8 | if (`nasm -v 2>NUL` =~ /NASM version ([0-9]+\.[0-9]+)/ && $1 >= 2.0) { | |
abe256e7 RL |
9 | $vc_win64a_info = { AS => "nasm", |
10 | ASFLAGS => "-g", | |
11 | asflags => "-Ox -f win64 -DNEAR", | |
b6954f3b | 12 | asoutflag => "-o " }; |
43800958 | 13 | } elsif ($disabled{asm}) { |
c059564a | 14 | # assembler is still used to compile uplink shim |
abe256e7 | 15 | $vc_win64a_info = { AS => "ml64", |
78a50c75 | 16 | ASFLAGS => "/nologo /Zi", |
abe256e7 | 17 | asflags => "/c /Cp /Cx", |
2fe73036 | 18 | asoutflag => "/Fo" }; |
43800958 | 19 | } else { |
8937a4ed | 20 | $die->("NASM not found - make sure it's installed and available on %PATH%\n"); |
abe256e7 RL |
21 | $vc_win64a_info = { AS => "{unknown}", |
22 | ASFLAGS => "", | |
d63c12c6 RL |
23 | asflags => "", |
24 | asoutflag => "" }; | |
2fe73036 RL |
25 | } |
26 | } | |
27 | return $vc_win64a_info; | |
28 | } | |
29 | ||
43800958 RL |
30 | my $vc_win32_info = {}; |
31 | sub vc_win32_info { | |
32 | unless (%$vc_win32_info) { | |
33 | my $ver=`nasm -v 2>NUL`; | |
34 | my $vew=`nasmw -v 2>NUL`; | |
35 | if ($ver ne "" || $vew ne "") { | |
abe256e7 RL |
36 | $vc_win32_info = { AS => $ver ge $vew ? "nasm" : "nasmw", |
37 | ASFLAGS => "", | |
43800958 | 38 | asflags => "-f win32", |
b6954f3b | 39 | asoutflag => "-o ", |
43800958 RL |
40 | perlasm_scheme => "win32n" }; |
41 | } elsif ($disabled{asm}) { | |
c059564a | 42 | # not actually used, uplink shim is inlined into C code |
abe256e7 RL |
43 | $vc_win32_info = { AS => "ml", |
44 | ASFLAGS => "/nologo /Zi", | |
45 | asflags => "/Cp /coff /c /Cx", | |
43800958 RL |
46 | asoutflag => "/Fo", |
47 | perlasm_scheme => "win32" }; | |
48 | } else { | |
8937a4ed | 49 | $die->("NASM not found - make sure it's installed and available on %PATH%\n"); |
abe256e7 RL |
50 | $vc_win32_info = { AS => "{unknown}", |
51 | ASFLAGS => "", | |
d63c12c6 RL |
52 | asflags => "", |
53 | asoutflag => "", | |
54 | perlasm_scheme => "win32" }; | |
43800958 RL |
55 | } |
56 | } | |
57 | return $vc_win32_info; | |
58 | } | |
59 | ||
2fe73036 RL |
60 | my $vc_wince_info = {}; |
61 | sub vc_wince_info { | |
62 | unless (%$vc_wince_info) { | |
63 | # sanity check | |
17f16617 RL |
64 | $die->('%OSVERSION% is not defined') if (!defined(env('OSVERSION'))); |
65 | $die->('%PLATFORM% is not defined') if (!defined(env('PLATFORM'))); | |
66 | $die->('%TARGETCPU% is not defined') if (!defined(env('TARGETCPU'))); | |
2fe73036 RL |
67 | |
68 | # | |
69 | # Idea behind this is to mimic flags set by eVC++ IDE... | |
70 | # | |
17f16617 | 71 | my $wcevers = env('OSVERSION'); # WCENNN |
d63c12c6 RL |
72 | my $wcevernum; |
73 | my $wceverdotnum; | |
74 | if ($wcevers =~ /^WCE([1-9])([0-9]{2})$/) { | |
75 | $wcevernum = "$1$2"; | |
76 | $wceverdotnum = "$1.$2"; | |
77 | } else { | |
78 | $die->('%OSVERSION% value is insane'); | |
79 | $wcevernum = "{unknown}"; | |
80 | $wceverdotnum = "{unknown}"; | |
81 | } | |
82 | my $wcecdefs = "-D_WIN32_WCE=$wcevernum -DUNDER_CE=$wcevernum"; # -D_WIN32_WCE=NNN | |
83 | my $wcelflag = "/subsystem:windowsce,$wceverdotnum"; # ...,N.NN | |
2fe73036 | 84 | |
17f16617 | 85 | my $wceplatf = env('PLATFORM'); |
01d99976 RL |
86 | |
87 | $wceplatf =~ tr/a-z0-9 /A-Z0-9_/; | |
88 | $wcecdefs .= " -DWCE_PLATFORM_$wceplatf"; | |
2fe73036 | 89 | |
17f16617 | 90 | my $wcetgt = env('TARGETCPU'); # just shorter name... |
2fe73036 RL |
91 | SWITCH: for($wcetgt) { |
92 | /^X86/ && do { $wcecdefs.=" -Dx86 -D_X86_ -D_i386_ -Di_386_"; | |
93 | $wcelflag.=" /machine:X86"; last; }; | |
94 | /^ARMV4[IT]/ && do { $wcecdefs.=" -DARM -D_ARM_ -D$wcetgt"; | |
95 | $wcecdefs.=" -DTHUMB -D_THUMB_" if($wcetgt=~/T$/); | |
96 | $wcecdefs.=" -QRarch4T -QRinterwork-return"; | |
97 | $wcelflag.=" /machine:THUMB"; last; }; | |
98 | /^ARM/ && do { $wcecdefs.=" -DARM -D_ARM_ -D$wcetgt"; | |
99 | $wcelflag.=" /machine:ARM"; last; }; | |
100 | /^MIPSIV/ && do { $wcecdefs.=" -DMIPS -D_MIPS_ -DR4000 -D$wcetgt"; | |
101 | $wcecdefs.=" -D_MIPS64 -QMmips4 -QMn32"; | |
102 | $wcelflag.=" /machine:MIPSFPU"; last; }; | |
103 | /^MIPS16/ && do { $wcecdefs.=" -DMIPS -D_MIPS_ -DR4000 -D$wcetgt"; | |
104 | $wcecdefs.=" -DMIPSII -QMmips16"; | |
105 | $wcelflag.=" /machine:MIPS16"; last; }; | |
106 | /^MIPSII/ && do { $wcecdefs.=" -DMIPS -D_MIPS_ -DR4000 -D$wcetgt"; | |
107 | $wcecdefs.=" -QMmips2"; | |
108 | $wcelflag.=" /machine:MIPS"; last; }; | |
109 | /^R4[0-9]{3}/ && do { $wcecdefs.=" -DMIPS -D_MIPS_ -DR4000"; | |
110 | $wcelflag.=" /machine:MIPS"; last; }; | |
111 | /^SH[0-9]/ && do { $wcecdefs.=" -D$wcetgt -D_${wcetgt}_ -DSHx"; | |
112 | $wcecdefs.=" -Qsh4" if ($wcetgt =~ /^SH4/); | |
113 | $wcelflag.=" /machine:$wcetgt"; last; }; | |
114 | { $wcecdefs.=" -D$wcetgt -D_${wcetgt}_"; | |
115 | $wcelflag.=" /machine:$wcetgt"; last; }; | |
116 | } | |
117 | ||
8c3bc594 | 118 | $vc_wince_info = { cppflags => $wcecdefs, |
2fe73036 RL |
119 | lflags => $wcelflag }; |
120 | } | |
121 | return $vc_wince_info; | |
122 | } | |
123 | ||
5fe5bc30 RL |
124 | # Helper functions for the VMS configs |
125 | my $vms_info = {}; | |
126 | sub vms_info { | |
ab907189 RL |
127 | my $pointer_size_str = $config{target} =~ m|-p(\d+)$| ? $1 : ""; |
128 | ||
129 | # For the case where Configure iterate through all config targets, such | |
130 | # as when listing them and their details, we reset info if the pointer | |
131 | # size changes. | |
132 | if (%$vms_info && $vms_info->{pointer_size} ne $pointer_size_str) { | |
133 | $vms_info = {}; | |
134 | } | |
0c9b1534 | 135 | |
ab907189 | 136 | unless (%$vms_info) { |
0c9b1534 | 137 | $vms_info->{disable_warns} = [ ]; |
7878e536 | 138 | $vms_info->{pointer_size} = $pointer_size_str; |
ab907189 | 139 | if ($pointer_size_str eq "64") { |
0c9b1534 RL |
140 | `PIPE CC /NOCROSS_REFERENCE /NOLIST /NOOBJECT /WARNINGS = DISABLE = ( MAYLOSEDATA3, EMPTYFILE ) NL: 2> NL:`; |
141 | if ($? == 0) { | |
142 | push @{$vms_info->{disable_warns}}, "MAYLOSEDATA3"; | |
143 | } | |
144 | } | |
62890f47 RL |
145 | |
146 | unless ($disabled{zlib}) { | |
0c9b1534 | 147 | my $default_zlib = 'GNV$LIBZSHR' . $pointer_size_str; |
62890f47 | 148 | if (defined($disabled{"zlib-dynamic"})) { |
0c9b1534 | 149 | $vms_info->{zlib} = $withargs{zlib_lib} || "$default_zlib/SHARE"; |
62890f47 | 150 | } else { |
0c9b1534 RL |
151 | $vms_info->{def_zlib} = $withargs{zlib_lib} || $default_zlib; |
152 | # In case the --with-zlib-lib value contains something like | |
153 | # /SHARE or /LIB or so at the end, remove it. | |
154 | $vms_info->{def_zlib} =~ s|/.*$||g; | |
62890f47 RL |
155 | } |
156 | } | |
ab7134ef RL |
157 | |
158 | if ($config{target} =~ /-ia64/) { | |
159 | `PIPE ias -H 2> NL:`; | |
160 | if ($? == 0) { | |
abe256e7 RL |
161 | $vms_info->{AS} = "ias"; |
162 | $vms_info->{ASFLAGS} = '-d debug'; | |
163 | $vms_info->{asflags} = '"-N" vms_upcase'; | |
b6954f3b | 164 | $vms_info->{asoutflag} = "-o "; |
ab7134ef RL |
165 | $vms_info->{perlasm_scheme} = "ias"; |
166 | } | |
167 | } | |
5fe5bc30 RL |
168 | } |
169 | return $vms_info; | |
170 | } | |
2fe73036 | 171 | |
3b6c4b07 | 172 | my %targets = ( |
f09e7ca9 | 173 | |
7ead0c89 | 174 | #### Basic configs that should work on any 32-bit box |
5e1b2353 | 175 | "gcc" => { |
d76117b9 | 176 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
177 | CC => "gcc", |
178 | CFLAGS => picker(debug => "-O0 -g", | |
8864f0de | 179 | release => "-O3"), |
9c62a279 | 180 | thread_scheme => "(unknown)", |
5e1b2353 RL |
181 | bn_ops => "BN_LLONG", |
182 | }, | |
183 | "cc" => { | |
d76117b9 | 184 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
185 | CC => "cc", |
186 | CFLAGS => "-O", | |
9c62a279 | 187 | thread_scheme => "(unknown)", |
5e1b2353 | 188 | }, |
f09e7ca9 | 189 | |
7ead0c89 | 190 | #### VOS Configurations |
5e1b2353 | 191 | "vos-gcc" => { |
d2b2221a | 192 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
193 | CC => "gcc", |
194 | CFLAGS => picker(default => "-Wall", | |
463a7b8c | 195 | debug => "-O0 -g", |
8864f0de | 196 | release => "-O3"), |
68b8bcf4 RL |
197 | cppflags => "-D_POSIX_C_SOURCE=200112L -D_BSD -D_VOS_EXTENDED_NAMES", |
198 | lib_cppflags => "-DB_ENDIAN", | |
9c62a279 | 199 | thread_scheme => "(unknown)", |
5e1b2353 | 200 | sys_id => "VOS", |
47eeaf45 | 201 | lflags => add("-Wl,-map"), |
5e1b2353 RL |
202 | bn_ops => "BN_LLONG", |
203 | shared_extension => ".so", | |
204 | }, | |
f09e7ca9 | 205 | |
29d09327 | 206 | #### Solaris configurations |
f6739c3d | 207 | "solaris-common" => { |
d2b2221a | 208 | inherit_from => [ "BASE_unix" ], |
f6739c3d | 209 | template => 1, |
68b8bcf4 | 210 | lib_cppflags => "-DFILIO_H", |
8cfc21f5 | 211 | ex_libs => add("-lsocket -lnsl -ldl"), |
f6739c3d | 212 | dso_scheme => "dlfcn", |
9c62a279 | 213 | thread_scheme => "pthreads", |
7b97581b RL |
214 | }, |
215 | #### Solaris common with Sun C setups | |
216 | "solaris-common-cc" => { | |
217 | inherit_from => [ "solaris-common" ], | |
218 | template => 1, | |
ef2dfc99 | 219 | shared_target => "solaris", |
dbb85890 AP |
220 | shared_ldflag => "-Wl,-Bsymbolic", |
221 | shared_defflag => "-Wl,-M,", | |
222 | shared_sonameflag=> "-Wl,-h,", | |
f6739c3d | 223 | }, |
7b97581b RL |
224 | #### Solaris common with GNU C setups |
225 | "solaris-common-gcc" => { | |
226 | inherit_from => [ "solaris-common" ], | |
227 | template => 1, | |
3a19f1a9 | 228 | shared_target => "solaris-gcc-shared", # The rest is on shared_info.pl |
7b97581b | 229 | }, |
f09e7ca9 | 230 | #### Solaris x86 with GNU C setups |
5e1b2353 | 231 | "solaris-x86-gcc" => { |
fe9e5b9c AP |
232 | # NB. GNU C has to be configured to use GNU assembler, and not |
233 | # /usr/ccs/bin/as. Failure to comply will result in compile | |
234 | # failures [at least] in 32-bit build. | |
7b97581b | 235 | inherit_from => [ "solaris-common-gcc" ], |
abe256e7 RL |
236 | CC => "gcc", |
237 | CFLAGS => add_before(picker(default => "-Wall", | |
8864f0de | 238 | debug => "-O0 -g", |
abe256e7 RL |
239 | release => "-O3 -fomit-frame-pointer")), |
240 | cflags => add(threads("-pthread")), | |
68b8bcf4 | 241 | lib_cppflags => add("-DL_ENDIAN"), |
fcd2ac80 | 242 | ex_libs => add(threads("-pthread")), |
a01dab94 | 243 | bn_ops => "BN_LLONG", |
5e1b2353 | 244 | shared_cflag => "-fPIC", |
82b6b084 | 245 | shared_ldflag => add_before("-shared -static-libgcc"), |
e6f98ae4 RL |
246 | asm_arch => 'x86', |
247 | perlasm_scheme => 'elf', | |
5e1b2353 | 248 | }, |
5e1b2353 | 249 | "solaris64-x86_64-gcc" => { |
7ead0c89 AP |
250 | # -shared -static-libgcc might appear controversial, but modules |
251 | # taken from static libgcc do not have relocations and linking | |
252 | # them into our shared objects doesn't have any negative side | |
253 | # effects. On the contrary, doing so makes it possible to use | |
254 | # gcc shared build with Sun C. Given that gcc generates faster | |
255 | # code [thanks to inline assembler], I would actually recommend | |
256 | # to consider using gcc shared build even with vendor compiler:-) | |
e3713c36 | 257 | # -- <appro@openssl.org> |
7b97581b | 258 | inherit_from => [ "solaris-common-gcc" ], |
abe256e7 RL |
259 | CC => "gcc", |
260 | CFLAGS => add_before(picker(default => "-Wall", | |
8864f0de | 261 | debug => "-O0 -g", |
abe256e7 RL |
262 | release => "-O3")), |
263 | cflags => add_before("-m64", threads("-pthread")), | |
68b8bcf4 | 264 | lib_cppflags => add("-DL_ENDIAN"), |
fcd2ac80 | 265 | ex_libs => add(threads("-pthread")), |
3e9e810f | 266 | bn_ops => "SIXTY_FOUR_BIT_LONG", |
e6f98ae4 | 267 | asm_arch => 'x86_64', |
5e1b2353 | 268 | perlasm_scheme => "elf", |
5e1b2353 | 269 | shared_cflag => "-fPIC", |
82b6b084 | 270 | shared_ldflag => add_before("-shared -static-libgcc"), |
5e1b2353 RL |
271 | multilib => "/64", |
272 | }, | |
f09e7ca9 RS |
273 | |
274 | #### Solaris x86 with Sun C setups | |
216a0cc4 AP |
275 | # There used to be solaris-x86-cc target, but it was removed, |
276 | # primarily because vendor assembler can't assemble our modules | |
277 | # with -KPIC flag. As result it, assembly support, was not even | |
278 | # available as option. But its lack means lack of side-channel | |
79c44b4e | 279 | # resistant code, which is incompatible with security by today's |
216a0cc4 AP |
280 | # standards. Fortunately gcc is readily available prepackaged |
281 | # option, which we can firmly point at... | |
282 | # | |
283 | # On related note, solaris64-x86_64-cc target won't compile code | |
284 | # paths utilizing AVX and post-Haswell instruction extensions. | |
285 | # Consider switching to solaris64-x86_64-gcc even here... | |
286 | # | |
5e1b2353 | 287 | "solaris64-x86_64-cc" => { |
7b97581b | 288 | inherit_from => [ "solaris-common-cc" ], |
abe256e7 RL |
289 | CC => "cc", |
290 | CFLAGS => add_before(picker(debug => "-g", | |
8c3bc594 | 291 | release => "-xO5 -xdepend -xbuiltin")), |
abe256e7 | 292 | cflags => add_before("-xarch=generic64 -xstrconst -Xa"), |
68b8bcf4 RL |
293 | cppflags => add(threads("-D_REENTRANT")), |
294 | lib_cppflags => add("-DL_ENDIAN"), | |
9c62a279 | 295 | thread_scheme => "pthreads", |
8dd0ff1c | 296 | lflags => add(threads("-mt")), |
9c62a279 | 297 | ex_libs => add(threads("-lpthread")), |
3e9e810f | 298 | bn_ops => "SIXTY_FOUR_BIT_LONG", |
e6f98ae4 | 299 | asm_arch => 'x86_64', |
5e1b2353 | 300 | perlasm_scheme => "elf", |
5e1b2353 | 301 | shared_cflag => "-KPIC", |
82b6b084 | 302 | shared_ldflag => add_before("-G -dy -z text"), |
5e1b2353 RL |
303 | multilib => "/64", |
304 | }, | |
f09e7ca9 RS |
305 | |
306 | #### SPARC Solaris with GNU C setups | |
5e1b2353 | 307 | "solaris-sparcv7-gcc" => { |
7b97581b | 308 | inherit_from => [ "solaris-common-gcc" ], |
abe256e7 RL |
309 | CC => "gcc", |
310 | CFLAGS => add_before(picker(default => "-Wall", | |
8864f0de | 311 | debug => "-O0 -g", |
abe256e7 RL |
312 | release => "-O3")), |
313 | cflags => add(threads("-pthread")), | |
68b8bcf4 | 314 | lib_cppflags => add("-DB_ENDIAN -DBN_DIV2W"), |
fcd2ac80 | 315 | ex_libs => add(threads("-pthread")), |
3e9e810f | 316 | bn_ops => "BN_LLONG RC4_CHAR", |
5e1b2353 | 317 | shared_cflag => "-fPIC", |
82b6b084 | 318 | shared_ldflag => add_before("-shared"), |
5e1b2353 | 319 | }, |
5e1b2353 | 320 | "solaris-sparcv8-gcc" => { |
30478c97 | 321 | inherit_from => [ "solaris-sparcv7-gcc" ], |
bdcd83e1 | 322 | cflags => add_before("-mcpu=v8"), |
e6f98ae4 RL |
323 | asm_arch => 'sparcv8', |
324 | perlasm_scheme => 'void', | |
5e1b2353 | 325 | }, |
5e1b2353 | 326 | "solaris-sparcv9-gcc" => { |
7ead0c89 | 327 | # -m32 should be safe to add as long as driver recognizes |
f6739c3d | 328 | # -mcpu=ultrasparc |
30478c97 | 329 | inherit_from => [ "solaris-sparcv7-gcc" ], |
463a7b8c | 330 | cflags => add_before("-m32 -mcpu=ultrasparc"), |
e6f98ae4 RL |
331 | asm_arch => 'sparcv9', |
332 | perlasm_scheme => 'void', | |
5e1b2353 RL |
333 | }, |
334 | "solaris64-sparcv9-gcc" => { | |
7ead0c89 | 335 | inherit_from => [ "solaris-sparcv9-gcc" ], |
f6739c3d | 336 | cflags => sub { my $f=join(" ",@_); $f =~ s/\-m32/-m64/; $f; }, |
3e9e810f | 337 | bn_ops => "BN_LLONG RC4_CHAR", |
5e1b2353 RL |
338 | multilib => "/64", |
339 | }, | |
f09e7ca9 RS |
340 | |
341 | #### SPARC Solaris with Sun C setups | |
342 | # SC4.0 doesn't pass 'make test', upgrade to SC5.0 or SC4.2. | |
343 | # SC4.2 is ok, better than gcc even on bn as long as you tell it -xarch=v8 | |
344 | # SC5.0 note: Compiler common patch 107357-01 or later is required! | |
5e1b2353 | 345 | "solaris-sparcv7-cc" => { |
7b97581b | 346 | inherit_from => [ "solaris-common-cc" ], |
abe256e7 RL |
347 | CC => "cc", |
348 | CFLAGS => add_before(picker(debug => "-g", | |
8c3bc594 | 349 | release => "-xO5 -xdepend")), |
abe256e7 | 350 | cflags => add_before("-xstrconst -Xa"), |
68b8bcf4 RL |
351 | cppflags => add(threads("-D_REENTRANT")), |
352 | lib_cppflags => add("-DB_ENDIAN -DBN_DIV2W"), | |
9c62a279 RL |
353 | lflags => add(threads("-mt")), |
354 | ex_libs => add(threads("-lpthread")), | |
3e9e810f | 355 | bn_ops => "BN_LLONG RC4_CHAR", |
5e1b2353 | 356 | shared_cflag => "-KPIC", |
82b6b084 | 357 | shared_ldflag => add_before("-G -dy -z text"), |
5e1b2353 | 358 | }, |
f09e7ca9 | 359 | #### |
5e1b2353 | 360 | "solaris-sparcv8-cc" => { |
30478c97 | 361 | inherit_from => [ "solaris-sparcv7-cc" ], |
bdcd83e1 | 362 | cflags => add_before("-xarch=v8"), |
e6f98ae4 RL |
363 | asm_arch => 'sparcv8', |
364 | perlasm_scheme => 'void', | |
5e1b2353 RL |
365 | }, |
366 | "solaris-sparcv9-cc" => { | |
30478c97 | 367 | inherit_from => [ "solaris-sparcv7-cc" ], |
fa4618a2 | 368 | cflags => add_before("-xarch=v8plus"), |
e6f98ae4 RL |
369 | asm_arch => 'sparcv9', |
370 | perlasm_scheme => 'void', | |
5e1b2353 RL |
371 | }, |
372 | "solaris64-sparcv9-cc" => { | |
30478c97 | 373 | inherit_from => [ "solaris-sparcv7-cc" ], |
fa4618a2 | 374 | cflags => add_before("-xarch=v9"), |
3e9e810f | 375 | bn_ops => "BN_LLONG RC4_CHAR", |
e6f98ae4 RL |
376 | asm_arch => 'sparcv9', |
377 | perlasm_scheme => 'void', | |
5e1b2353 RL |
378 | multilib => "/64", |
379 | }, | |
f09e7ca9 | 380 | |
f09e7ca9 | 381 | #### IRIX 6.x configs |
c21c7830 | 382 | # Only N32 and N64 ABIs are supported. |
1b712f3f AP |
383 | "irix-common" => { |
384 | inherit_from => [ "BASE_unix" ], | |
385 | template => 1, | |
386 | cppflags => threads("-D_SGI_MP_SOURCE"), | |
b34446cc | 387 | lib_cppflags => "-DB_ENDIAN", |
1b712f3f AP |
388 | ex_libs => add(threads("-lpthread")), |
389 | thread_scheme => "pthreads", | |
390 | dso_scheme => "dlfcn", | |
391 | shared_target => "self", | |
1b712f3f AP |
392 | shared_ldflag => "-shared -Wl,-Bsymbolic", |
393 | shared_sonameflag=> "-Wl,-soname,", | |
394 | }, | |
5e1b2353 | 395 | "irix-mips3-gcc" => { |
30478c97 | 396 | inherit_from => [ "irix-common" ], |
abe256e7 RL |
397 | CC => "gcc", |
398 | CFLAGS => picker(debug => "-g -O0", | |
399 | release => "-O3"), | |
1b712f3f | 400 | LDFLAGS => "-static-libgcc", |
abe256e7 | 401 | cflags => "-mabi=n32", |
3e9e810f | 402 | bn_ops => "RC4_CHAR SIXTY_FOUR_BIT", |
e6f98ae4 | 403 | asm_arch => 'mips64', |
5e1b2353 | 404 | perlasm_scheme => "n32", |
5e1b2353 RL |
405 | multilib => "32", |
406 | }, | |
407 | "irix-mips3-cc" => { | |
30478c97 | 408 | inherit_from => [ "irix-common" ], |
abe256e7 RL |
409 | CC => "cc", |
410 | CFLAGS => picker(debug => "-g -O0", | |
411 | release => "-O2"), | |
412 | cflags => "-n32 -mips3 -use_readonly_const -G0 -rdata_shared", | |
3e9e810f | 413 | bn_ops => "RC4_CHAR SIXTY_FOUR_BIT", |
e6f98ae4 | 414 | asm_arch => 'mips64', |
5e1b2353 | 415 | perlasm_scheme => "n32", |
5e1b2353 RL |
416 | multilib => "32", |
417 | }, | |
7ead0c89 | 418 | # N64 ABI builds. |
5e1b2353 | 419 | "irix64-mips4-gcc" => { |
30478c97 | 420 | inherit_from => [ "irix-common" ], |
abe256e7 RL |
421 | CC => "gcc", |
422 | CFLAGS => picker(debug => "-g -O0", | |
423 | release => "-O3"), | |
1b712f3f | 424 | LDFLAGS => "-static-libgcc", |
abe256e7 | 425 | cflags => "-mabi=64 -mips4", |
3e9e810f | 426 | bn_ops => "RC4_CHAR SIXTY_FOUR_BIT_LONG", |
e6f98ae4 | 427 | asm_arch => 'mips64', |
5e1b2353 | 428 | perlasm_scheme => "64", |
5e1b2353 RL |
429 | multilib => "64", |
430 | }, | |
431 | "irix64-mips4-cc" => { | |
30478c97 | 432 | inherit_from => [ "irix-common" ], |
abe256e7 RL |
433 | CC => "cc", |
434 | CFLAGS => picker(debug => "-g -O0", | |
435 | release => "-O2"), | |
abe256e7 | 436 | cflags => "-64 -mips4 -use_readonly_const -G0 -rdata_shared", |
3e9e810f | 437 | bn_ops => "RC4_CHAR SIXTY_FOUR_BIT_LONG", |
e6f98ae4 | 438 | asm_arch => 'mips64', |
5e1b2353 | 439 | perlasm_scheme => "64", |
5e1b2353 RL |
440 | multilib => "64", |
441 | }, | |
f09e7ca9 RS |
442 | |
443 | #### Unified HP-UX ANSI C configs. | |
444 | # Special notes: | |
445 | # - Originally we were optimizing at +O4 level. It should be noted | |
446 | # that the only difference between +O3 and +O4 is global inter- | |
447 | # procedural analysis. As it has to be performed during the link | |
448 | # stage the compiler leaves behind certain pseudo-code in lib*.a | |
449 | # which might be release or even patch level specific. Generating | |
450 | # the machine code for and analyzing the *whole* program appears | |
451 | # to be *extremely* memory demanding while the performance gain is | |
452 | # actually questionable. The situation is intensified by the default | |
453 | # HP-UX data set size limit (infamous 'maxdsiz' tunable) of 64MB | |
454 | # which is way too low for +O4. In other words, doesn't +O3 make | |
455 | # more sense? | |
456 | # - Keep in mind that the HP compiler by default generates code | |
457 | # suitable for execution on the host you're currently compiling at. | |
b6453a68 | 458 | # If the toolkit is meant to be used on various PA-RISC processors |
7ead0c89 | 459 | # consider './Configure hpux-parisc-[g]cc +DAportable'. |
f09e7ca9 RS |
460 | # - -DMD32_XARRAY triggers workaround for compiler bug we ran into in |
461 | # 32-bit message digests. (For the moment of this writing) HP C | |
462 | # doesn't seem to "digest" too many local variables (they make "him" | |
463 | # chew forever:-). For more details look-up MD32_XARRAY comment in | |
706457b7 | 464 | # crypto/sha/sha_local.h. |
7ead0c89 | 465 | # - originally there were 32-bit hpux-parisc2-* targets. They were |
b6453a68 | 466 | # scrapped, because a) they were not interchangeable with other 32-bit |
0b919cc5 AP |
467 | # targets; b) performance-critical 32-bit assembly modules implement |
468 | # even PA-RISC 2.0-specific code paths, which are chosen at run-time, | |
469 | # thus adequate performance is provided even with PA-RISC 1.1 build. | |
3c3badcf AP |
470 | "hpux-common" => { |
471 | inherit_from => [ "BASE_unix" ], | |
6e301900 AP |
472 | template => 1, |
473 | defines => add("_XOPEN_SOURCE", "_XOPEN_SOURCE_EXTENDED", | |
474 | "_HPUX_ALT_XOPEN_SOCKET_API"), | |
3c3badcf AP |
475 | lib_cppflags => "-DB_ENDIAN", |
476 | thread_scheme => "pthreads", | |
477 | dso_scheme => "dlfcn", # overridden in 32-bit PA-RISC builds | |
0ef40b76 AP |
478 | shared_target => "self", |
479 | bin_lflags => "-Wl,+s,+cdp,../:,+cdp,./:", | |
480 | shared_ldflag => "-Wl,-B,symbolic,+vnocompatwarnings,-z,+s,+cdp,../:,+cdp,./:", | |
481 | shared_sonameflag=> "-Wl,+h,", | |
6e301900 | 482 | }, |
5e1b2353 | 483 | "hpux-parisc-gcc" => { |
3c3badcf | 484 | inherit_from => [ "hpux-common" ], |
abe256e7 RL |
485 | CC => "gcc", |
486 | CFLAGS => picker(debug => "-O0 -g", | |
487 | release => "-O3"), | |
488 | cflags => add(threads("-pthread")), | |
3c3badcf | 489 | lib_cppflags => add("-DBN_DIV2W"), |
6e301900 | 490 | ex_libs => add("-ldld", threads("-pthread")), |
3c3badcf | 491 | bn_ops => "BN_LLONG RC4_CHAR", |
5e1b2353 | 492 | dso_scheme => "dl", |
5e1b2353 | 493 | shared_cflag => "-fPIC", |
0ef40b76 | 494 | shared_ldflag => add_before("-shared"), |
d4453024 | 495 | shared_extension => ".sl.\$(SHLIB_VERSION_NUMBER)", |
5e1b2353 RL |
496 | }, |
497 | "hpux-parisc1_1-gcc" => { | |
30478c97 | 498 | inherit_from => [ "hpux-parisc-gcc" ], |
e6f98ae4 RL |
499 | asm_arch => 'parisc11', |
500 | perlasm_scheme => "32", | |
5e1b2353 RL |
501 | multilib => "/pa1.1", |
502 | }, | |
5e1b2353 | 503 | "hpux64-parisc2-gcc" => { |
30478c97 | 504 | inherit_from => [ "hpux-common" ], |
abe256e7 RL |
505 | CC => "gcc", |
506 | CFLAGS => combine(picker(debug => "-O0 -g", | |
8c3bc594 | 507 | release => "-O3")), |
6e301900 | 508 | cflags => add(threads("-pthread")), |
6e301900 | 509 | ex_libs => add("-ldl", threads("-pthread")), |
3e9e810f | 510 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR", |
e6f98ae4 RL |
511 | asm_arch => 'parisc20_64', |
512 | perlasm_scheme => "64", | |
5e1b2353 | 513 | shared_cflag => "-fpic", |
0ef40b76 | 514 | shared_ldflag => add_before("-shared"), |
d4453024 | 515 | shared_extension => ".sl.\$(SHLIB_VERSION_NUMBER)", |
5e1b2353 RL |
516 | multilib => "/pa20_64", |
517 | }, | |
f09e7ca9 | 518 | |
7ead0c89 | 519 | # More attempts at unified 10.X and 11.X targets for HP C compiler. |
5e1b2353 | 520 | "hpux-parisc-cc" => { |
3c3badcf | 521 | inherit_from => [ "hpux-common" ], |
abe256e7 RL |
522 | CC => "cc", |
523 | CFLAGS => picker(debug => "+O0 +d -g", | |
524 | release => "+O3"), | |
525 | cflags => "+Optrs_strongly_typed -Ae +ESlit", | |
68b8bcf4 | 526 | cppflags => threads("-D_REENTRANT"), |
3c3badcf | 527 | lib_cppflags => add("-DBN_DIV2W -DMD32_XARRAY"), |
6e301900 | 528 | ex_libs => add("-ldld", threads("-lpthread")), |
3e9e810f | 529 | bn_ops => "RC4_CHAR", |
5e1b2353 | 530 | dso_scheme => "dl", |
5e1b2353 | 531 | shared_cflag => "+Z", |
0ef40b76 | 532 | shared_ldflag => add_before("-b"), |
d4453024 | 533 | shared_extension => ".sl.\$(SHLIB_VERSION_NUMBER)", |
5e1b2353 RL |
534 | }, |
535 | "hpux-parisc1_1-cc" => { | |
30478c97 | 536 | inherit_from => [ "hpux-parisc-cc" ], |
bdcd83e1 | 537 | cflags => add_before("+DA1.1"), |
e6f98ae4 RL |
538 | asm_arch => 'parisc11', |
539 | perlasm_scheme => "32", | |
5e1b2353 RL |
540 | multilib => "/pa1.1", |
541 | }, | |
5e1b2353 | 542 | "hpux64-parisc2-cc" => { |
30478c97 | 543 | inherit_from => [ "hpux-common" ], |
abe256e7 RL |
544 | CC => "cc", |
545 | CFLAGS => picker(debug => "+O0 +d -g", | |
546 | release => "+O3") , | |
547 | cflags => "+DD64 +Optrs_strongly_typed -Ae +ESlit", | |
68b8bcf4 | 548 | cppflags => threads("-D_REENTRANT") , |
3c3badcf | 549 | lib_cppflags => add("-DMD32_XARRAY"), |
6e301900 | 550 | ex_libs => add("-ldl", threads("-lpthread")), |
3e9e810f | 551 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR", |
e6f98ae4 RL |
552 | asm_arch => 'parisc20_64', |
553 | perlasm_scheme => "64", | |
5e1b2353 | 554 | shared_cflag => "+Z", |
0ef40b76 | 555 | shared_ldflag => add_before("-b"), |
d4453024 | 556 | shared_extension => ".sl.\$(SHLIB_VERSION_NUMBER)", |
5e1b2353 RL |
557 | multilib => "/pa20_64", |
558 | }, | |
f09e7ca9 | 559 | |
7ead0c89 | 560 | # HP/UX IA-64 targets |
5e1b2353 | 561 | "hpux-ia64-cc" => { |
30478c97 | 562 | inherit_from => [ "hpux-common" ], |
abe256e7 RL |
563 | CC => "cc", |
564 | CFLAGS => picker(debug => "+O0 +d -g", | |
565 | release => "+O2"), | |
566 | cflags => "-Ae +DD32 +Olit=all -z", | |
68b8bcf4 | 567 | cppflags => add(threads("-D_REENTRANT")), |
6e301900 | 568 | ex_libs => add("-ldl", threads("-lpthread")), |
3e9e810f | 569 | bn_ops => "SIXTY_FOUR_BIT", |
e6f98ae4 RL |
570 | asm_arch => 'ia64', |
571 | perlasm_scheme => 'void', | |
5e1b2353 | 572 | shared_cflag => "+Z", |
0ef40b76 | 573 | shared_ldflag => add_before("-b"), |
5e1b2353 RL |
574 | multilib => "/hpux32", |
575 | }, | |
5e1b2353 | 576 | "hpux64-ia64-cc" => { |
30478c97 | 577 | inherit_from => [ "hpux-common" ], |
abe256e7 RL |
578 | CC => "cc", |
579 | CFLAGS => picker(debug => "+O0 +d -g", | |
580 | release => "+O3"), | |
581 | cflags => "-Ae +DD64 +Olit=all -z", | |
68b8bcf4 | 582 | cppflags => threads("-D_REENTRANT"), |
9c62a279 | 583 | ex_libs => add("-ldl", threads("-lpthread")), |
3e9e810f | 584 | bn_ops => "SIXTY_FOUR_BIT_LONG", |
e6f98ae4 RL |
585 | asm_arch => 'ia64', |
586 | perlasm_scheme => 'void', | |
5e1b2353 | 587 | shared_cflag => "+Z", |
0ef40b76 | 588 | shared_ldflag => add_before("-b"), |
5e1b2353 RL |
589 | multilib => "/hpux64", |
590 | }, | |
7ead0c89 | 591 | # GCC builds... |
5e1b2353 | 592 | "hpux-ia64-gcc" => { |
30478c97 | 593 | inherit_from => [ "hpux-common" ], |
abe256e7 RL |
594 | CC => "gcc", |
595 | CFLAGS => picker(debug => "-O0 -g", | |
596 | release => "-O3"), | |
597 | cflags => add(threads("-pthread")), | |
fcd2ac80 | 598 | ex_libs => add("-ldl", threads("-pthread")), |
3e9e810f | 599 | bn_ops => "SIXTY_FOUR_BIT", |
e6f98ae4 RL |
600 | asm_arch => 'ia64', |
601 | perlasm_scheme => 'void', | |
5e1b2353 | 602 | shared_cflag => "-fpic", |
0ef40b76 | 603 | shared_ldflag => add_before("-shared"), |
5e1b2353 RL |
604 | multilib => "/hpux32", |
605 | }, | |
606 | "hpux64-ia64-gcc" => { | |
30478c97 | 607 | inherit_from => [ "hpux-common" ], |
abe256e7 RL |
608 | CC => "gcc", |
609 | CFLAGS => picker(debug => "-O0 -g", | |
610 | release => "-O3"), | |
611 | cflags => combine("-mlp64", threads("-pthread")), | |
fcd2ac80 | 612 | ex_libs => add("-ldl", threads("-pthread")), |
3e9e810f | 613 | bn_ops => "SIXTY_FOUR_BIT_LONG", |
e6f98ae4 RL |
614 | asm_arch => 'ia64', |
615 | perlasm_scheme => 'void', | |
5e1b2353 | 616 | shared_cflag => "-fpic", |
0ef40b76 | 617 | shared_ldflag => add_before("-shared"), |
5e1b2353 RL |
618 | multilib => "/hpux64", |
619 | }, | |
f09e7ca9 | 620 | |
f09e7ca9 | 621 | #### HP MPE/iX http://jazz.external.hp.com/src/openssl/ |
5e1b2353 | 622 | "MPE/iX-gcc" => { |
d2b2221a | 623 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
624 | CC => "gcc", |
625 | CFLAGS => "-O3", | |
68b8bcf4 RL |
626 | cppflags => "-D_POSIX_SOURCE -D_SOCKET_SOURCE", |
627 | includes => [ "/SYSLOG/PUB" ], | |
628 | lib_cppflags => "-DBN_DIV2W", | |
5e1b2353 | 629 | sys_id => "MPE", |
47eeaf45 RL |
630 | lflags => add("-L/SYSLOG/PUB"), |
631 | ex_libs => add("-lsyslog -lsocket -lcurses"), | |
9c62a279 | 632 | thread_scheme => "(unknown)", |
3e9e810f | 633 | bn_ops => "BN_LLONG", |
5e1b2353 | 634 | }, |
f09e7ca9 | 635 | |
b4de72bf AP |
636 | #### DEC Alpha Tru64 targets. Tru64 is marketing name for OSF/1 version 4 |
637 | #### and forward. In reality 'uname -s' still returns "OSF1". Originally | |
638 | #### there were even osf1-* configs targeting prior versions provided, | |
639 | #### but not anymore... | |
640 | "tru64-alpha-gcc" => { | |
30478c97 | 641 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
642 | CC => "gcc", |
643 | CFLAGS => "-O3", | |
644 | cflags => add("-std=c9x", threads("-pthread")), | |
8c3bc594 | 645 | cppflags => "-D_XOPEN_SOURCE=500 -D_OSF_SOURCE", |
fcd2ac80 | 646 | ex_libs => add("-lrt", threads("-pthread")), # for mlock(2) |
3e9e810f | 647 | bn_ops => "SIXTY_FOUR_BIT_LONG", |
e6f98ae4 RL |
648 | asm_arch => 'alpha', |
649 | perlasm_scheme => "void", | |
b4de72bf | 650 | thread_scheme => "pthreads", |
5e1b2353 RL |
651 | dso_scheme => "dlfcn", |
652 | shared_target => "alpha-osf1-shared", | |
653 | shared_extension => ".so", | |
654 | }, | |
655 | "tru64-alpha-cc" => { | |
30478c97 | 656 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
657 | CC => "cc", |
658 | CFLAGS => "-tune host -fast", | |
659 | cflags => add("-std1 -readonly_strings", | |
660 | threads("-pthread")), | |
8c3bc594 | 661 | cppflags => "-D_XOPEN_SOURCE=500 -D_OSF_SOURCE", |
fcd2ac80 | 662 | ex_libs => add("-lrt", threads("-pthread")), # for mlock(2) |
3e9e810f | 663 | bn_ops => "SIXTY_FOUR_BIT_LONG", |
e6f98ae4 RL |
664 | asm_arch => 'alpha', |
665 | perlasm_scheme => "void", | |
9c62a279 | 666 | thread_scheme => "pthreads", |
5e1b2353 RL |
667 | dso_scheme => "dlfcn", |
668 | shared_target => "alpha-osf1-shared", | |
669 | shared_ldflag => "-msym", | |
670 | shared_extension => ".so", | |
671 | }, | |
f09e7ca9 RS |
672 | |
673 | #### | |
674 | #### Variety of LINUX:-) | |
675 | #### | |
676 | # *-generic* is endian-neutral target, but ./config is free to | |
677 | # throw in -D[BL]_ENDIAN, whichever appropriate... | |
5e1b2353 | 678 | "linux-generic32" => { |
d2b2221a | 679 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
680 | CC => "gcc", |
681 | CXX => "g++", | |
682 | CFLAGS => picker(default => "-Wall", | |
683 | debug => "-O0 -g", | |
684 | release => "-O3"), | |
685 | CXXFLAGS => picker(default => "-Wall", | |
686 | debug => "-O0 -g", | |
687 | release => "-O3"), | |
688 | cflags => threads("-pthread"), | |
689 | cxxflags => combine("-std=c++11", threads("-pthread")), | |
68b8bcf4 | 690 | lib_cppflags => "-DOPENSSL_USE_NODELETE", |
fcd2ac80 | 691 | ex_libs => add("-ldl", threads("-pthread")), |
3e9e810f | 692 | bn_ops => "BN_LLONG RC4_CHAR", |
9c62a279 | 693 | thread_scheme => "pthreads", |
5e1b2353 RL |
694 | dso_scheme => "dlfcn", |
695 | shared_target => "linux-shared", | |
8c3bc594 | 696 | shared_cflag => "-fPIC", |
41999e7d | 697 | shared_ldflag => sub { $disabled{pinshared} ? () : "-Wl,-znodelete" }, |
9e381e8a | 698 | enable => [ "afalgeng" ], |
5e1b2353 | 699 | }, |
7ead0c89 AP |
700 | "linux-generic64" => { |
701 | inherit_from => [ "linux-generic32" ], | |
3e9e810f | 702 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR", |
7ead0c89 AP |
703 | }, |
704 | ||
5e1b2353 | 705 | "linux-ppc" => { |
30478c97 | 706 | inherit_from => [ "linux-generic32" ], |
e6f98ae4 | 707 | asm_arch => 'ppc32', |
5e1b2353 | 708 | perlasm_scheme => "linux32", |
52c6c12c | 709 | lib_cppflags => add("-DB_ENDIAN"), |
7ead0c89 AP |
710 | }, |
711 | "linux-ppc64" => { | |
30478c97 | 712 | inherit_from => [ "linux-generic64" ], |
8c3bc594 | 713 | cflags => add("-m64"), |
72d7f221 | 714 | cxxflags => add("-m64"), |
68b8bcf4 | 715 | lib_cppflags => add("-DB_ENDIAN"), |
e6f98ae4 | 716 | asm_arch => 'ppc64', |
7ead0c89 | 717 | perlasm_scheme => "linux64", |
7ead0c89 AP |
718 | multilib => "64", |
719 | }, | |
720 | "linux-ppc64le" => { | |
30478c97 | 721 | inherit_from => [ "linux-generic64" ], |
8c3bc594 | 722 | cflags => add("-m64"), |
72d7f221 | 723 | cxxflags => add("-m64"), |
68b8bcf4 | 724 | lib_cppflags => add("-DL_ENDIAN"), |
e6f98ae4 | 725 | asm_arch => 'ppc64', |
7ead0c89 | 726 | perlasm_scheme => "linux64le", |
5e1b2353 | 727 | }, |
f09e7ca9 | 728 | |
5e1b2353 | 729 | "linux-armv4" => { |
7ead0c89 AP |
730 | ################################################################ |
731 | # Note that -march is not among compiler options in linux-armv4 | |
732 | # target description. Not specifying one is intentional to give | |
733 | # you choice to: | |
734 | # | |
735 | # a) rely on your compiler default by not specifying one; | |
736 | # b) specify your target platform explicitly for optimal | |
737 | # performance, e.g. -march=armv6 or -march=armv7-a; | |
738 | # c) build "universal" binary that targets *range* of platforms | |
739 | # by specifying minimum and maximum supported architecture; | |
740 | # | |
741 | # As for c) option. It actually makes no sense to specify | |
742 | # maximum to be less than ARMv7, because it's the least | |
743 | # requirement for run-time switch between platform-specific | |
744 | # code paths. And without run-time switch performance would be | |
745 | # equivalent to one for minimum. Secondly, there are some | |
746 | # natural limitations that you'd have to accept and respect. | |
747 | # Most notably you can *not* build "universal" binary for | |
748 | # big-endian platform. This is because ARMv7 processor always | |
749 | # picks instructions in little-endian order. Another similar | |
750 | # limitation is that -mthumb can't "cross" -march=armv6t2 | |
751 | # boundary, because that's where it became Thumb-2. Well, this | |
752 | # limitation is a bit artificial, because it's not really | |
753 | # impossible, but it's deemed too tricky to support. And of | |
754 | # course you have to be sure that your binutils are actually | |
755 | # up to the task of handling maximum target platform. With all | |
756 | # this in mind here is an example of how to configure | |
757 | # "universal" build: | |
758 | # | |
759 | # ./Configure linux-armv4 -march=armv6 -D__ARM_MAX_ARCH__=8 | |
760 | # | |
30478c97 | 761 | inherit_from => [ "linux-generic32" ], |
e6f98ae4 | 762 | asm_arch => 'armv4', |
7ead0c89 | 763 | perlasm_scheme => "linux32", |
5e1b2353 RL |
764 | }, |
765 | "linux-aarch64" => { | |
30478c97 | 766 | inherit_from => [ "linux-generic64" ], |
e6f98ae4 | 767 | asm_arch => 'aarch64', |
5e1b2353 | 768 | perlasm_scheme => "linux64", |
5e1b2353 | 769 | }, |
a93d3e06 | 770 | "linux-arm64ilp32" => { # https://wiki.linaro.org/Platform/arm64-ilp32 |
30478c97 | 771 | inherit_from => [ "linux-generic32" ], |
8864f0de | 772 | cflags => add("-mabi=ilp32"), |
72d7f221 | 773 | cxxflags => add("-mabi=ilp32"), |
3e9e810f | 774 | bn_ops => "SIXTY_FOUR_BIT RC4_CHAR", |
e6f98ae4 | 775 | asm_arch => 'aarch64', |
a93d3e06 | 776 | perlasm_scheme => "linux64", |
a93d3e06 | 777 | }, |
7ead0c89 | 778 | |
5e1b2353 | 779 | "linux-mips32" => { |
7ead0c89 AP |
780 | # Configure script adds minimally required -march for assembly |
781 | # support, if no -march was specified at command line. | |
30478c97 | 782 | inherit_from => [ "linux-generic32" ], |
8c3bc594 | 783 | cflags => add("-mabi=32"), |
72d7f221 | 784 | cxxflags => add("-mabi=32"), |
e6f98ae4 | 785 | asm_arch => 'mips32', |
5e1b2353 | 786 | perlasm_scheme => "o32", |
5e1b2353 | 787 | }, |
7ead0c89 AP |
788 | # mips32 and mips64 below refer to contemporary MIPS Architecture |
789 | # specifications, MIPS32 and MIPS64, rather than to kernel bitness. | |
5e1b2353 | 790 | "linux-mips64" => { |
30478c97 | 791 | inherit_from => [ "linux-generic32" ], |
8c3bc594 | 792 | cflags => add("-mabi=n32"), |
72d7f221 | 793 | cxxflags => add("-mabi=n32"), |
76899264 | 794 | bn_ops => "RC4_CHAR", |
e6f98ae4 | 795 | asm_arch => 'mips64', |
5e1b2353 | 796 | perlasm_scheme => "n32", |
5e1b2353 RL |
797 | multilib => "32", |
798 | }, | |
799 | "linux64-mips64" => { | |
30478c97 | 800 | inherit_from => [ "linux-generic64" ], |
8c3bc594 | 801 | cflags => add("-mabi=64"), |
72d7f221 | 802 | cxxflags => add("-mabi=64"), |
e6f98ae4 | 803 | asm_arch => 'mips64', |
5e1b2353 | 804 | perlasm_scheme => "64", |
5e1b2353 RL |
805 | multilib => "64", |
806 | }, | |
7ead0c89 | 807 | |
c2955424 | 808 | # riscv64 below refers to contemporary RISCV Architecture |
809 | # specifications, | |
810 | "linux64-riscv64" => { | |
811 | inherit_from => [ "linux-generic64"], | |
812 | perlasm_scheme => "linux64", | |
813 | }, | |
814 | ||
7ead0c89 | 815 | #### IA-32 targets... |
7fbc0bfd RL |
816 | #### These two targets are a bit aged and are to be used on older Linux |
817 | #### machines where gcc doesn't understand -m32 and -m64 | |
5e1b2353 | 818 | "linux-elf" => { |
30478c97 | 819 | inherit_from => [ "linux-generic32" ], |
abe256e7 | 820 | CFLAGS => add(picker(release => "-fomit-frame-pointer")), |
68b8bcf4 | 821 | lib_cppflags => add("-DL_ENDIAN"), |
a01dab94 | 822 | bn_ops => "BN_LLONG", |
e6f98ae4 RL |
823 | asm_arch => 'x86', |
824 | perlasm_scheme => "elf", | |
5e1b2353 RL |
825 | }, |
826 | "linux-aout" => { | |
30478c97 | 827 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
828 | CC => "gcc", |
829 | CFLAGS => add(picker(default => "-Wall", | |
8864f0de RL |
830 | debug => "-O0 -g", |
831 | release => "-O3 -fomit-frame-pointer")), | |
68b8bcf4 | 832 | lib_cppflags => add("-DL_ENDIAN"), |
a01dab94 | 833 | bn_ops => "BN_LLONG", |
9c62a279 | 834 | thread_scheme => "(unknown)", |
e6f98ae4 | 835 | asm_arch => 'x86', |
5e1b2353 RL |
836 | perlasm_scheme => "a.out", |
837 | }, | |
7ead0c89 | 838 | |
7fbc0bfd RL |
839 | #### X86 / X86_64 targets |
840 | "linux-x86" => { | |
30478c97 | 841 | inherit_from => [ "linux-generic32" ], |
abe256e7 RL |
842 | CFLAGS => add(picker(release => "-fomit-frame-pointer")), |
843 | cflags => add("-m32"), | |
72d7f221 | 844 | cxxflags => add("-m32"), |
68b8bcf4 | 845 | lib_cppflags => add("-DL_ENDIAN"), |
7fbc0bfd | 846 | bn_ops => "BN_LLONG", |
e6f98ae4 | 847 | asm_arch => 'x86', |
7fbc0bfd | 848 | perlasm_scheme => "elf", |
7fbc0bfd RL |
849 | }, |
850 | "linux-x86-clang" => { | |
851 | inherit_from => [ "linux-x86" ], | |
abe256e7 RL |
852 | CC => "clang", |
853 | CXX => "clang++", | |
7fbc0bfd | 854 | }, |
5e1b2353 | 855 | "linux-x86_64" => { |
30478c97 | 856 | inherit_from => [ "linux-generic64" ], |
8c3bc594 | 857 | cflags => add("-m64"), |
72d7f221 | 858 | cxxflags => add("-m64"), |
68b8bcf4 | 859 | lib_cppflags => add("-DL_ENDIAN"), |
3e9e810f | 860 | bn_ops => "SIXTY_FOUR_BIT_LONG", |
e6f98ae4 | 861 | asm_arch => 'x86_64', |
5e1b2353 | 862 | perlasm_scheme => "elf", |
5e1b2353 RL |
863 | multilib => "64", |
864 | }, | |
7ead0c89 AP |
865 | "linux-x86_64-clang" => { |
866 | inherit_from => [ "linux-x86_64" ], | |
abe256e7 RL |
867 | CC => "clang", |
868 | CXX => "clang++", | |
7ead0c89 | 869 | }, |
5e1b2353 | 870 | "linux-x32" => { |
30478c97 | 871 | inherit_from => [ "linux-generic32" ], |
8c3bc594 | 872 | cflags => add("-mx32"), |
72d7f221 | 873 | cxxflags => add("-mx32"), |
68b8bcf4 | 874 | lib_cppflags => add("-DL_ENDIAN"), |
3e9e810f | 875 | bn_ops => "SIXTY_FOUR_BIT", |
e6f98ae4 | 876 | asm_arch => 'x86_64', |
2460c7f1 | 877 | perlasm_scheme => "elf32", |
5e1b2353 RL |
878 | multilib => "x32", |
879 | }, | |
7ead0c89 AP |
880 | |
881 | "linux-ia64" => { | |
30478c97 | 882 | inherit_from => [ "linux-generic64" ], |
3e9e810f | 883 | bn_ops => "SIXTY_FOUR_BIT_LONG", |
e6f98ae4 RL |
884 | asm_arch => 'ia64', |
885 | perlasm_scheme => 'void', | |
7ead0c89 AP |
886 | }, |
887 | ||
5e1b2353 | 888 | "linux64-s390x" => { |
30478c97 | 889 | inherit_from => [ "linux-generic64" ], |
8c3bc594 | 890 | cflags => add("-m64"), |
72d7f221 | 891 | cxxflags => add("-m64"), |
68b8bcf4 | 892 | lib_cppflags => add("-DB_ENDIAN"), |
e6f98ae4 | 893 | asm_arch => 's390x', |
5e1b2353 | 894 | perlasm_scheme => "64", |
5e1b2353 RL |
895 | multilib => "64", |
896 | }, | |
5e1b2353 | 897 | "linux32-s390x" => { |
7ead0c89 AP |
898 | #### So called "highgprs" target for z/Architecture CPUs |
899 | # "Highgprs" is kernel feature first implemented in Linux | |
900 | # 2.6.32, see /proc/cpuinfo. The idea is to preserve most | |
901 | # significant bits of general purpose registers not only | |
902 | # upon 32-bit process context switch, but even on | |
903 | # asynchronous signal delivery to such process. This makes | |
904 | # it possible to deploy 64-bit instructions even in legacy | |
905 | # application context and achieve better [or should we say | |
906 | # adequate] performance. The build is binary compatible with | |
907 | # linux-generic32, and the idea is to be able to install the | |
908 | # resulting libcrypto.so alongside generic one, e.g. as | |
909 | # /lib/highgprs/libcrypto.so.x.y, for ldconfig and run-time | |
910 | # linker to autodiscover. Unfortunately it doesn't work just | |
911 | # yet, because of couple of bugs in glibc | |
912 | # sysdeps/s390/dl-procinfo.c affecting ldconfig and ld.so.1... | |
913 | # | |
30478c97 | 914 | inherit_from => [ "linux-generic32" ], |
8c3bc594 | 915 | cflags => add("-m31 -Wa,-mzarch"), |
72d7f221 | 916 | cxxflags => add("-m31 -Wa,-mzarch"), |
68b8bcf4 | 917 | lib_cppflags => add("-DB_ENDIAN"), |
e6f98ae4 | 918 | asm_arch => 's390x', |
5e1b2353 | 919 | perlasm_scheme => "31", |
5e1b2353 RL |
920 | multilib => "/highgprs", |
921 | }, | |
7ead0c89 AP |
922 | |
923 | #### SPARC Linux setups | |
5e1b2353 | 924 | "linux-sparcv8" => { |
30478c97 | 925 | inherit_from => [ "linux-generic32" ], |
8c3bc594 | 926 | cflags => add("-mcpu=v8"), |
72d7f221 | 927 | cxxflags => add("-mcpu=v8"), |
abe256e7 | 928 | lib_cppflags => add("-DB_ENDIAN -DBN_DIV2W"), |
e6f98ae4 RL |
929 | asm_arch => 'sparcv8', |
930 | perlasm_scheme => 'void', | |
5e1b2353 | 931 | }, |
5e1b2353 | 932 | "linux-sparcv9" => { |
7ead0c89 AP |
933 | # it's a real mess with -mcpu=ultrasparc option under Linux, |
934 | # but -Wa,-Av8plus should do the trick no matter what. | |
30478c97 | 935 | inherit_from => [ "linux-generic32" ], |
8c3bc594 | 936 | cflags => add("-m32 -mcpu=ultrasparc -Wa,-Av8plus"), |
72d7f221 | 937 | cxxflags => add("-m32 -mcpu=ultrasparc -Wa,-Av8plus"), |
abe256e7 | 938 | lib_cppflags => add("-DB_ENDIAN -DBN_DIV2W"), |
e6f98ae4 RL |
939 | asm_arch => 'sparcv9', |
940 | perlasm_scheme => 'void', | |
5e1b2353 | 941 | }, |
5e1b2353 | 942 | "linux64-sparcv9" => { |
7ead0c89 | 943 | # GCC 3.1 is a requirement |
30478c97 | 944 | inherit_from => [ "linux-generic64" ], |
8c3bc594 | 945 | cflags => add("-m64 -mcpu=ultrasparc"), |
72d7f221 | 946 | cxxflags => add("-m64 -mcpu=ultrasparc"), |
abe256e7 | 947 | lib_cppflags => add("-DB_ENDIAN"), |
3e9e810f | 948 | bn_ops => "BN_LLONG RC4_CHAR", |
e6f98ae4 RL |
949 | asm_arch => 'sparcv9', |
950 | perlasm_scheme => 'void', | |
5e1b2353 RL |
951 | multilib => "64", |
952 | }, | |
7ead0c89 | 953 | |
5e1b2353 | 954 | "linux-alpha-gcc" => { |
30478c97 | 955 | inherit_from => [ "linux-generic64" ], |
abe256e7 | 956 | lib_cppflags => add("-DL_ENDIAN"), |
3e9e810f | 957 | bn_ops => "SIXTY_FOUR_BIT_LONG", |
e6f98ae4 RL |
958 | asm_arch => 'alpha', |
959 | perlasm_scheme => "void", | |
5e1b2353 | 960 | }, |
5e1b2353 | 961 | "linux-c64xplus" => { |
d2b2221a | 962 | inherit_from => [ "BASE_unix" ], |
7ead0c89 | 963 | # TI_CGT_C6000_7.3.x is a requirement |
abe256e7 RL |
964 | CC => "cl6x", |
965 | CFLAGS => "-o2 -ox -ms", | |
966 | cflags => "--linux -ea=.s -eo=.o -mv6400+ -pden", | |
72d7f221 | 967 | cxxflags => "--linux -ea=.s -eo=.o -mv6400+ -pden", |
8c3bc594 | 968 | cppflags => combine("-DOPENSSL_SMALL_FOOTPRINT", |
9c62a279 | 969 | threads("-D_REENTRANT")), |
5e1b2353 | 970 | bn_ops => "BN_LLONG", |
9c62a279 | 971 | thread_scheme => "pthreads", |
e6f98ae4 | 972 | asm_arch => 'c64xplus', |
5e1b2353 RL |
973 | perlasm_scheme => "void", |
974 | dso_scheme => "dlfcn", | |
975 | shared_target => "linux-shared", | |
976 | shared_cflag => "--pic", | |
b6d5ba1a | 977 | shared_ldflag => add("-z --sysv --shared"), |
5e1b2353 RL |
978 | ranlib => "true", |
979 | }, | |
f09e7ca9 | 980 | |
1818572d | 981 | #### *BSD |
5e1b2353 | 982 | "BSD-generic32" => { |
9c62a279 | 983 | # As for thread cflag. Idea is to maintain "collective" set of |
1818572d AP |
984 | # flags, which would cover all BSD flavors. -pthread applies |
985 | # to them all, but is treated differently. OpenBSD expands is | |
986 | # as -D_POSIX_THREAD -lc_r, which is sufficient. FreeBSD 4.x | |
987 | # expands it as -lc_r, which has to be accompanied by explicit | |
988 | # -D_THREAD_SAFE and sometimes -D_REENTRANT. FreeBSD 5.x | |
989 | # expands it as -lc_r, which seems to be sufficient? | |
d2b2221a | 990 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
991 | CC => "cc", |
992 | CFLAGS => picker(default => "-Wall", | |
993 | debug => "-O0 -g", | |
994 | release => "-O3"), | |
995 | cflags => threads("-pthread"), | |
8c3bc594 | 996 | cppflags => threads("-D_THREAD_SAFE -D_REENTRANT"), |
fcd2ac80 | 997 | ex_libs => add(threads("-pthread")), |
619eb33a | 998 | enable => add("devcryptoeng"), |
3e9e810f | 999 | bn_ops => "BN_LLONG", |
9c62a279 | 1000 | thread_scheme => "pthreads", |
5e1b2353 RL |
1001 | dso_scheme => "dlfcn", |
1002 | shared_target => "bsd-gcc-shared", | |
1003 | shared_cflag => "-fPIC", | |
5e1b2353 | 1004 | }, |
7ead0c89 AP |
1005 | "BSD-generic64" => { |
1006 | inherit_from => [ "BSD-generic32" ], | |
3e9e810f | 1007 | bn_ops => "SIXTY_FOUR_BIT_LONG", |
5e1b2353 | 1008 | }, |
7ead0c89 AP |
1009 | |
1010 | "BSD-x86" => { | |
30478c97 | 1011 | inherit_from => [ "BSD-generic32" ], |
abe256e7 | 1012 | CFLAGS => add(picker(release => "-fomit-frame-pointer")), |
68b8bcf4 | 1013 | lib_cppflags => add("-DL_ENDIAN"), |
a01dab94 | 1014 | bn_ops => "BN_LLONG", |
e6f98ae4 | 1015 | asm_arch => 'x86', |
7ead0c89 | 1016 | perlasm_scheme => "a.out", |
5e1b2353 | 1017 | }, |
7ead0c89 AP |
1018 | "BSD-x86-elf" => { |
1019 | inherit_from => [ "BSD-x86" ], | |
1020 | perlasm_scheme => "elf", | |
5e1b2353 | 1021 | }, |
f09e7ca9 | 1022 | |
7ead0c89 | 1023 | "BSD-sparcv8" => { |
30478c97 | 1024 | inherit_from => [ "BSD-generic32" ], |
8c3bc594 | 1025 | cflags => add("-mcpu=v8"), |
68b8bcf4 | 1026 | lib_cppflags => add("-DB_ENDIAN"), |
e6f98ae4 RL |
1027 | asm_arch => 'sparcv8', |
1028 | perlasm_scheme => 'void', | |
5e1b2353 | 1029 | }, |
5e1b2353 | 1030 | "BSD-sparc64" => { |
7ead0c89 AP |
1031 | # -DMD32_REG_T=int doesn't actually belong in sparc64 target, it |
1032 | # simply *happens* to work around a compiler bug in gcc 3.3.3, | |
1033 | # triggered by RIPEMD160 code. | |
30478c97 | 1034 | inherit_from => [ "BSD-generic64" ], |
68b8bcf4 | 1035 | lib_cppflags => add("-DB_ENDIAN -DMD32_REG_T=int"), |
3e9e810f | 1036 | bn_ops => "BN_LLONG", |
e6f98ae4 RL |
1037 | asm_arch => 'sparcv9', |
1038 | perlasm_scheme => 'void', | |
5e1b2353 | 1039 | }, |
7ead0c89 | 1040 | |
5e1b2353 | 1041 | "BSD-ia64" => { |
30478c97 | 1042 | inherit_from => [ "BSD-generic64" ], |
68b8bcf4 | 1043 | lib_cppflags => add("-DL_ENDIAN"), |
3e9e810f | 1044 | bn_ops => "SIXTY_FOUR_BIT_LONG", |
e6f98ae4 RL |
1045 | asm_arch => 'ia64', |
1046 | perlasm_scheme => 'void', | |
5e1b2353 | 1047 | }, |
7ead0c89 | 1048 | |
5e1b2353 | 1049 | "BSD-x86_64" => { |
30478c97 | 1050 | inherit_from => [ "BSD-generic64" ], |
68b8bcf4 | 1051 | lib_cppflags => add("-DL_ENDIAN"), |
3e9e810f | 1052 | bn_ops => "SIXTY_FOUR_BIT_LONG", |
e6f98ae4 | 1053 | asm_arch => 'x86_64', |
5e1b2353 | 1054 | perlasm_scheme => "elf", |
5e1b2353 | 1055 | }, |
f09e7ca9 | 1056 | |
5e1b2353 | 1057 | "bsdi-elf-gcc" => { |
30478c97 | 1058 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
1059 | CC => "gcc", |
1060 | CFLAGS => "-fomit-frame-pointer -O3 -Wall", | |
68b8bcf4 | 1061 | lib_cppflags => "-DPERL5 -DL_ENDIAN", |
98fdbce0 | 1062 | ex_libs => add("-ldl"), |
a01dab94 | 1063 | bn_ops => "BN_LLONG", |
e6f98ae4 RL |
1064 | asm_arch => 'x86', |
1065 | perlasm_scheme => "elf", | |
9c62a279 | 1066 | thread_scheme => "(unknown)", |
5e1b2353 RL |
1067 | dso_scheme => "dlfcn", |
1068 | shared_target => "bsd-gcc-shared", | |
1069 | shared_cflag => "-fPIC", | |
5e1b2353 | 1070 | }, |
f09e7ca9 | 1071 | |
f09e7ca9 RS |
1072 | #### SCO/Caldera targets. |
1073 | # | |
1074 | # Originally we had like unixware-*, unixware-*-pentium, unixware-*-p6, etc. | |
1075 | # Now we only have blended unixware-* as it's the only one used by ./config. | |
1076 | # If you want to optimize for particular microarchitecture, bypass ./config | |
1077 | # and './Configure unixware-7 -Kpentium_pro' or whatever appropriate. | |
1078 | # Note that not all targets include assembler support. Mostly because of | |
1079 | # lack of motivation to support out-of-date platforms with out-of-date | |
e3713c36 | 1080 | # compiler drivers and assemblers. |
f09e7ca9 RS |
1081 | # |
1082 | # UnixWare 2.0x fails destest with -O. | |
5e1b2353 | 1083 | "unixware-2.0" => { |
d2b2221a | 1084 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
1085 | CC => "cc", |
1086 | cflags => threads("-Kthread"), | |
68b8bcf4 | 1087 | lib_cppflags => "-DFILIO_H -DNO_STRINGS_H", |
98fdbce0 | 1088 | ex_libs => add("-lsocket -lnsl -lresolv -lx"), |
9c62a279 | 1089 | thread_scheme => "uithreads", |
5e1b2353 RL |
1090 | }, |
1091 | "unixware-2.1" => { | |
d2b2221a | 1092 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
1093 | CC => "cc", |
1094 | CFLAGS => "-O", | |
1095 | cflags => threads("-Kthread"), | |
68b8bcf4 | 1096 | lib_cppflags => "-DFILIO_H", |
98fdbce0 | 1097 | ex_libs => add("-lsocket -lnsl -lresolv -lx"), |
9c62a279 | 1098 | thread_scheme => "uithreads", |
5e1b2353 RL |
1099 | }, |
1100 | "unixware-7" => { | |
30478c97 | 1101 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
1102 | CC => "cc", |
1103 | CFLAGS => "-O", | |
1104 | cflags => combine("-Kalloca", threads("-Kthread")), | |
68b8bcf4 | 1105 | lib_cppflags => "-DFILIO_H", |
98fdbce0 | 1106 | ex_libs => add("-lsocket -lnsl"), |
9c62a279 | 1107 | thread_scheme => "uithreads", |
a01dab94 | 1108 | bn_ops => "BN_LLONG", |
e6f98ae4 | 1109 | asm_arch => 'x86', |
5e1b2353 RL |
1110 | perlasm_scheme => "elf-1", |
1111 | dso_scheme => "dlfcn", | |
1112 | shared_target => "svr5-shared", | |
1113 | shared_cflag => "-Kpic", | |
5e1b2353 RL |
1114 | }, |
1115 | "unixware-7-gcc" => { | |
30478c97 | 1116 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
1117 | CC => "gcc", |
1118 | CFLAGS => "-O3 -fomit-frame-pointer -Wall", | |
68b8bcf4 RL |
1119 | cppflags => add(threads("-D_REENTRANT")), |
1120 | lib_cppflags => add("-DL_ENDIAN -DFILIO_H"), | |
98fdbce0 | 1121 | ex_libs => add("-lsocket -lnsl"), |
a01dab94 | 1122 | bn_ops => "BN_LLONG", |
9c62a279 | 1123 | thread_scheme => "pthreads", |
e6f98ae4 | 1124 | asm_arch => 'x86', |
5e1b2353 RL |
1125 | perlasm_scheme => "elf-1", |
1126 | dso_scheme => "dlfcn", | |
1127 | shared_target => "gnu-shared", | |
1128 | shared_cflag => "-fPIC", | |
5e1b2353 | 1129 | }, |
e3713c36 | 1130 | # SCO 5 - Ben Laurie says the -O breaks the SCO cc. |
5e1b2353 | 1131 | "sco5-cc" => { |
30478c97 | 1132 | inherit_from => [ "BASE_unix" ], |
5e1b2353 RL |
1133 | cc => "cc", |
1134 | cflags => "-belf", | |
98fdbce0 | 1135 | ex_libs => add("-lsocket -lnsl"), |
9c62a279 | 1136 | thread_scheme => "(unknown)", |
e6f98ae4 | 1137 | asm_arch => 'x86', |
5e1b2353 RL |
1138 | perlasm_scheme => "elf-1", |
1139 | dso_scheme => "dlfcn", | |
1140 | shared_target => "svr3-shared", | |
1141 | shared_cflag => "-Kpic", | |
5e1b2353 RL |
1142 | }, |
1143 | "sco5-gcc" => { | |
30478c97 | 1144 | inherit_from => [ "BASE_unix" ], |
5e1b2353 RL |
1145 | cc => "gcc", |
1146 | cflags => "-O3 -fomit-frame-pointer", | |
98fdbce0 | 1147 | ex_libs => add("-lsocket -lnsl"), |
a01dab94 | 1148 | bn_ops => "BN_LLONG", |
9c62a279 | 1149 | thread_scheme => "(unknown)", |
e6f98ae4 | 1150 | asm_arch => 'x86', |
5e1b2353 RL |
1151 | perlasm_scheme => "elf-1", |
1152 | dso_scheme => "dlfcn", | |
1153 | shared_target => "svr3-shared", | |
1154 | shared_cflag => "-fPIC", | |
5e1b2353 | 1155 | }, |
f09e7ca9 RS |
1156 | |
1157 | #### IBM's AIX. | |
f780eaad AP |
1158 | # Below targets assume AIX >=5. Caveat lector. If you are accustomed |
1159 | # to control compilation "bitness" by setting $OBJECT_MODE environment | |
1160 | # variable, then you should know that in OpenSSL case it's considered | |
1161 | # only in ./config. Once configured, build procedure remains "deaf" to | |
1162 | # current value of $OBJECT_MODE. | |
10aafed3 AP |
1163 | "aix-common" => { |
1164 | inherit_from => [ "BASE_unix" ], | |
1165 | template => 1, | |
1166 | sys_id => "AIX", | |
1167 | lib_cppflags => "-DB_ENDIAN", | |
8f29569e | 1168 | lflags => "-Wl,-bsvr4", |
10aafed3 AP |
1169 | thread_scheme => "pthreads", |
1170 | dso_scheme => "dlfcn", | |
ef2dfc99 | 1171 | shared_target => "aix", |
f3d6a364 | 1172 | module_ldflags => "-Wl,-G,-bsymbolic,-bnoentry", |
c1b38462 | 1173 | shared_ldflag => "-Wl,-G,-bsymbolic,-bnoentry", |
d3273ef6 | 1174 | shared_defflag => "-Wl,-bE:", |
9a7319b0 | 1175 | shared_fipsflag => "-Wl,-binitfini:init:cleanup", |
fb82cbfe | 1176 | perl_platform => 'AIX', |
10aafed3 | 1177 | }, |
5e1b2353 | 1178 | "aix-gcc" => { |
30478c97 | 1179 | inherit_from => [ "aix-common" ], |
abe256e7 RL |
1180 | CC => "gcc", |
1181 | CFLAGS => picker(debug => "-O0 -g", | |
1182 | release => "-O"), | |
1183 | cflags => add(threads("-pthread")), | |
b1f9db69 | 1184 | ex_libs => add(threads("-pthread")), |
5e1b2353 | 1185 | bn_ops => "BN_LLONG RC4_CHAR", |
e6f98ae4 | 1186 | asm_arch => 'ppc32', |
5e1b2353 | 1187 | perlasm_scheme => "aix32", |
82b6b084 | 1188 | shared_ldflag => add_before("-shared -static-libgcc"), |
2a23cd7f AP |
1189 | AR => add("-X32"), |
1190 | RANLIB => add("-X32"), | |
5e1b2353 RL |
1191 | }, |
1192 | "aix64-gcc" => { | |
30478c97 | 1193 | inherit_from => [ "aix-common" ], |
abe256e7 RL |
1194 | CC => "gcc", |
1195 | CFLAGS => picker(debug => "-O0 -g", | |
1196 | release => "-O"), | |
1197 | cflags => combine("-maix64", threads("-pthread")), | |
b1f9db69 | 1198 | ex_libs => add(threads("-pthread")), |
5e1b2353 | 1199 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR", |
e6f98ae4 | 1200 | asm_arch => 'ppc64', |
5e1b2353 | 1201 | perlasm_scheme => "aix64", |
82b6b084 | 1202 | shared_ldflag => add_before("-shared -static-libgcc"), |
cff89b17 | 1203 | shared_extension => "64.so.\$(SHLIB_VERSION_NUMBER)", |
2a23cd7f AP |
1204 | AR => add("-X64"), |
1205 | RANLIB => add("-X64"), | |
5e1b2353 | 1206 | }, |
5e1b2353 | 1207 | "aix-cc" => { |
30478c97 | 1208 | inherit_from => [ "aix-common" ], |
abe256e7 RL |
1209 | CC => "cc", |
1210 | CFLAGS => picker(debug => "-O0 -g", | |
1211 | release => "-O"), | |
1212 | cflags => combine("-q32 -qmaxmem=16384 -qro -qroconst", | |
8c3bc594 | 1213 | threads("-qthreaded")), |
68b8bcf4 | 1214 | cppflags => threads("-D_THREAD_SAFE"), |
b1f9db69 | 1215 | ex_libs => add(threads("-lpthreads")), |
10aafed3 | 1216 | bn_ops => "BN_LLONG RC4_CHAR", |
e6f98ae4 | 1217 | asm_arch => 'ppc32', |
5e1b2353 | 1218 | perlasm_scheme => "aix32", |
4af14b7b | 1219 | shared_cflag => "-qpic", |
2a23cd7f AP |
1220 | AR => add("-X32"), |
1221 | RANLIB => add("-X32"), | |
5e1b2353 RL |
1222 | }, |
1223 | "aix64-cc" => { | |
30478c97 | 1224 | inherit_from => [ "aix-common" ], |
abe256e7 RL |
1225 | CC => "cc", |
1226 | CFLAGS => picker(debug => "-O0 -g", | |
1227 | release => "-O"), | |
1228 | cflags => combine("-q64 -qmaxmem=16384 -qro -qroconst", | |
8c3bc594 | 1229 | threads("-qthreaded")), |
68b8bcf4 | 1230 | cppflags => threads("-D_THREAD_SAFE"), |
b1f9db69 | 1231 | ex_libs => add(threads("-lpthreads")), |
10aafed3 | 1232 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR", |
e6f98ae4 | 1233 | asm_arch => 'ppc64', |
5e1b2353 RL |
1234 | perlasm_scheme => "aix64", |
1235 | dso_scheme => "dlfcn", | |
4af14b7b | 1236 | shared_cflag => "-qpic", |
cff89b17 | 1237 | shared_extension => "64.so.\$(SHLIB_VERSION_NUMBER)", |
2a23cd7f AP |
1238 | AR => add("-X64"), |
1239 | RANLIB => add("-X64"), | |
5e1b2353 | 1240 | }, |
f09e7ca9 RS |
1241 | |
1242 | # SIEMENS BS2000/OSD: an EBCDIC-based mainframe | |
5e1b2353 | 1243 | "BS2000-OSD" => { |
d2b2221a | 1244 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
1245 | CC => "c89", |
1246 | CFLAGS => "-O", | |
1247 | cflags => "-XLLML -XLLMK -XL", | |
68b8bcf4 RL |
1248 | cppflags => "-DCHARSET_EBCDIC", |
1249 | lib_cppflags => "-DB_ENDIAN", | |
98fdbce0 | 1250 | ex_libs => add("-lsocket -lnsl"), |
3e9e810f | 1251 | bn_ops => "THIRTY_TWO_BIT RC4_CHAR", |
9c62a279 | 1252 | thread_scheme => "(unknown)", |
5e1b2353 | 1253 | }, |
f09e7ca9 | 1254 | |
7ead0c89 | 1255 | #### Visual C targets |
f09e7ca9 | 1256 | # |
78a50c75 | 1257 | # Win64 targets, WIN64I denotes IA-64/Itanium and WIN64A - AMD64 |
f09e7ca9 | 1258 | # |
78a50c75 | 1259 | # Note about /wd4090, disable warning C4090. This warning returns false |
f09e7ca9 RS |
1260 | # positives in some situations. Disabling it altogether masks both |
1261 | # legitimate and false cases, but as we compile on multiple platforms, | |
1262 | # we rely on other compilers to catch legitimate cases. | |
2fe73036 RL |
1263 | # |
1264 | # Also note that we force threads no matter what. Configuring "no-threads" | |
1265 | # is ignored. | |
78a50c75 AP |
1266 | # |
1267 | # UNICODE is defined in VC-common and applies to all targets. It used to | |
1268 | # be an opt-in option for VC-WIN32, but not anymore. The original reason | |
1269 | # was because ANSI API was *native* system interface for no longer | |
1270 | # supported Windows 9x. Keep in mind that UNICODE only affects how | |
1271 | # OpenSSL libraries interact with underlying OS, it doesn't affect API | |
1272 | # that OpenSSL presents to application. | |
1273 | ||
7ead0c89 | 1274 | "VC-common" => { |
d2b2221a | 1275 | inherit_from => [ "BASE_Windows" ], |
7ead0c89 | 1276 | template => 1, |
abe256e7 RL |
1277 | CC => "cl", |
1278 | CPP => '$(CC) /EP /C', | |
78a50c75 | 1279 | CFLAGS => "/W3 /wd4090 /nologo", |
abe256e7 | 1280 | coutflag => "/Fo", |
23f3242f TI |
1281 | LD => "link", |
1282 | LDFLAGS => "/nologo /debug", | |
1283 | ldoutflag => "/out:", | |
a75a8756 TI |
1284 | ldpostoutflag => "", |
1285 | ld_resp_delim => "\n", | |
1286 | ld_wildcard_args => "setargv.obj", | |
23f3242f TI |
1287 | AR => "lib", |
1288 | ARFLAGS => "/nologo", | |
1289 | aroutflag => "/out:", | |
e15eff3a | 1290 | ar_resp_delim => "\n", |
8c3bc594 | 1291 | defines => add("OPENSSL_SYS_WIN32", "WIN32_LEAN_AND_MEAN", |
78a50c75 | 1292 | "UNICODE", "_UNICODE", |
68b8bcf4 RL |
1293 | "_CRT_SECURE_NO_DEPRECATE", |
1294 | "_WINSOCK_DEPRECATED_NO_WARNINGS"), | |
78a50c75 AP |
1295 | lib_cflags => add("/Zi /Fdossl_static.pdb"), |
1296 | lib_defines => add("L_ENDIAN"), | |
1297 | dso_cflags => "/Zi /Fddso.pdb", | |
1298 | bin_cflags => "/Zi /Fdapp.pdb", | |
ef2dfc99 RL |
1299 | # def_flag made to empty string so a .def file gets generated |
1300 | shared_defflag => '', | |
2fe73036 | 1301 | shared_ldflag => "/dll", |
e9abfc3a | 1302 | shared_target => "win-shared", # meaningless except it gives Configure a hint |
2fe73036 | 1303 | thread_scheme => "winthreads", |
5e1b2353 | 1304 | dso_scheme => "win32", |
95768961 | 1305 | perl_platform => 'Windows::MSVC', |
6a145a32 AP |
1306 | # additional parameter to build_scheme denotes install-path "flavour" |
1307 | build_scheme => add("VC-common", { separator => undef }), | |
5e1b2353 | 1308 | }, |
2fe73036 | 1309 | "VC-noCE-common" => { |
acf15259 | 1310 | inherit_from => [ "VC-common" ], |
be1f4812 | 1311 | template => 1, |
abe256e7 RL |
1312 | CFLAGS => add(picker(debug => '/Od', |
1313 | release => '/O2')), | |
78a50c75 AP |
1314 | cflags => add(picker(default => '/Gs0 /GF /Gy', |
1315 | debug => | |
2fe73036 | 1316 | sub { |
abe256e7 | 1317 | ($disabled{shared} ? "" : "/MDd"); |
2fe73036 RL |
1318 | }, |
1319 | release => | |
1320 | sub { | |
abe256e7 | 1321 | ($disabled{shared} ? "" : "/MD"); |
2fe73036 | 1322 | })), |
fffb1c54 AP |
1323 | defines => add(picker(default => [], # works as type cast |
1324 | debug => [ "DEBUG", "_DEBUG" ])), | |
c32cbe97 AP |
1325 | lib_cflags => add(sub { $disabled{shared} ? "/MT /Zl" : () }), |
1326 | # Following might/should appears controversial, i.e. defining | |
1327 | # /MDd without evaluating $disabled{shared}. It works in | |
1328 | # non-shared build because static library is compiled with /Zl | |
1329 | # and bares no reference to specific RTL. And it works in | |
1330 | # shared build because multiple /MDd options are not prohibited. | |
1331 | # But why /MDd in static build? Well, basically this is just a | |
1332 | # reference point, which allows to catch eventual errors that | |
1333 | # would prevent those who want to wrap OpenSSL into own .DLL. | |
1334 | # Why not /MD in release build then? Well, some are likely to | |
1335 | # prefer [non-debug] openssl.exe to be free from Micorosoft RTL | |
1336 | # redistributable. | |
1337 | bin_cflags => add(picker(debug => "/MDd", | |
1338 | release => sub { $disabled{shared} ? "/MT" : () }, | |
1339 | )), | |
2fe73036 | 1340 | bin_lflags => add("/subsystem:console /opt:ref"), |
ef5b8296 | 1341 | ex_libs => add(sub { |
2fe73036 RL |
1342 | my @ex_libs = (); |
1343 | push @ex_libs, 'ws2_32.lib' unless $disabled{sock}; | |
1344 | push @ex_libs, 'gdi32.lib advapi32.lib crypt32.lib user32.lib'; | |
1345 | return join(" ", @ex_libs); | |
ef5b8296 | 1346 | }), |
2fe73036 RL |
1347 | }, |
1348 | "VC-WIN64-common" => { | |
1349 | inherit_from => [ "VC-noCE-common" ], | |
be1f4812 | 1350 | template => 1, |
ef5b8296 | 1351 | ex_libs => add(sub { |
2fe73036 RL |
1352 | my @ex_libs = (); |
1353 | push @ex_libs, 'bufferoverflowu.lib' if (`cl 2>&1` =~ /14\.00\.4[0-9]{4}\./); | |
1354 | return join(" ", @_, @ex_libs); | |
ef5b8296 | 1355 | }), |
78a50c75 | 1356 | bn_ops => add("SIXTY_FOUR_BIT"), |
2fe73036 | 1357 | }, |
7ead0c89 | 1358 | "VC-WIN64I" => { |
30478c97 | 1359 | inherit_from => [ "VC-WIN64-common" ], |
abe256e7 RL |
1360 | AS => "ias", |
1361 | ASFLAGS => "-d debug", | |
78a50c75 | 1362 | asoutflag => "-o ", |
5e1b2353 | 1363 | sys_id => "WIN64I", |
b19fe714 | 1364 | uplink_arch => 'ia64', |
e6f98ae4 | 1365 | asm_arch => 'ia64', |
5e1b2353 | 1366 | perlasm_scheme => "ias", |
6ddb62a5 | 1367 | multilib => "-ia64", |
5e1b2353 RL |
1368 | }, |
1369 | "VC-WIN64A" => { | |
30478c97 | 1370 | inherit_from => [ "VC-WIN64-common" ], |
abe256e7 RL |
1371 | AS => sub { vc_win64a_info()->{AS} }, |
1372 | ASFLAGS => sub { vc_win64a_info()->{ASFLAGS} }, | |
2fe73036 | 1373 | asoutflag => sub { vc_win64a_info()->{asoutflag} }, |
abe256e7 | 1374 | asflags => sub { vc_win64a_info()->{asflags} }, |
5e1b2353 | 1375 | sys_id => "WIN64A", |
b19fe714 | 1376 | uplink_arch => 'x86_64', |
e6f98ae4 | 1377 | asm_arch => 'x86_64', |
5e1b2353 | 1378 | perlasm_scheme => "auto", |
6ddb62a5 | 1379 | multilib => "-x64", |
5e1b2353 | 1380 | }, |
5e1b2353 | 1381 | "VC-WIN32" => { |
30478c97 | 1382 | inherit_from => [ "VC-noCE-common" ], |
abe256e7 RL |
1383 | AS => sub { vc_win32_info()->{AS} }, |
1384 | ASFLAGS => sub { vc_win32_info()->{ASFLAGS} }, | |
43800958 | 1385 | asoutflag => sub { vc_win32_info()->{asoutflag} }, |
abe256e7 | 1386 | asflags => sub { vc_win32_info()->{asflags} }, |
5e1b2353 | 1387 | sys_id => "WIN32", |
78a50c75 | 1388 | bn_ops => add("BN_LLONG"), |
989b2ad7 | 1389 | uplink_arch => 'common', |
e6f98ae4 | 1390 | asm_arch => 'x86', |
f0d484fc | 1391 | perlasm_scheme => sub { vc_win32_info()->{perlasm_scheme} }, |
6a145a32 AP |
1392 | # "WOW" stands for "Windows on Windows", and "VC-WOW" engages |
1393 | # some installation path heuristics in windows-makefile.tmpl... | |
1394 | build_scheme => add("VC-WOW", { separator => undef }), | |
5e1b2353 | 1395 | }, |
5e1b2353 | 1396 | "VC-CE" => { |
2fe73036 | 1397 | inherit_from => [ "VC-common" ], |
78a50c75 AP |
1398 | CFLAGS => add(picker(debug => "/Od", |
1399 | release => "/O1i")), | |
abe256e7 RL |
1400 | CPPDEFINES => picker(debug => [ "DEBUG", "_DEBUG" ]), |
1401 | LDFLAGS => add("/nologo /opt:ref"), | |
2fe73036 | 1402 | cflags => |
abe256e7 RL |
1403 | combine('/GF /Gy', |
1404 | sub { vc_wince_info()->{cflags}; }, | |
1405 | sub { `cl 2>&1` =~ /Version ([0-9]+)\./ && $1>=14 | |
1406 | ? ($disabled{shared} ? " /MT" : " /MD") | |
1407 | : " /MC"; }), | |
e548c1fe | 1408 | cppflags => sub { vc_wince_info()->{cppflags}; }, |
78a50c75 | 1409 | lib_defines => add("NO_CHMOD", "OPENSSL_SMALL_FOOTPRINT"), |
68b8bcf4 | 1410 | lib_cppflags => sub { vc_wince_info()->{cppflags}; }, |
8c3bc594 | 1411 | includes => |
368297d1 RL |
1412 | add(combine(sub { defined(env('WCECOMPAT')) |
1413 | ? '$(WCECOMPAT)/include' : (); }, | |
1414 | sub { defined(env('PORTSDK_LIBPATH')) | |
1415 | ? '$(PORTSDK_LIBPATH)/../../include' | |
1416 | : (); })), | |
abe256e7 | 1417 | lflags => add(combine(sub { vc_wince_info()->{lflags}; }, |
47eeaf45 RL |
1418 | sub { defined(env('PORTSDK_LIBPATH')) |
1419 | ? "/entry:mainCRTstartup" : (); })), | |
5e1b2353 | 1420 | sys_id => "WINCE", |
78a50c75 | 1421 | bn_ops => add("BN_LLONG"), |
ef5b8296 | 1422 | ex_libs => add(sub { |
2fe73036 RL |
1423 | my @ex_libs = (); |
1424 | push @ex_libs, 'ws2.lib' unless $disabled{sock}; | |
1425 | push @ex_libs, 'crypt32.lib'; | |
17f16617 | 1426 | if (defined(env('WCECOMPAT'))) { |
2fe73036 | 1427 | my $x = '$(WCECOMPAT)/lib'; |
17f16617 | 1428 | if (-f "$x/env('TARGETCPU')/wcecompatex.lib") { |
2fe73036 RL |
1429 | $x .= '/$(TARGETCPU)/wcecompatex.lib'; |
1430 | } else { | |
1431 | $x .= '/wcecompatex.lib'; | |
1432 | } | |
1433 | push @ex_libs, $x; | |
1434 | } | |
1435 | push @ex_libs, '$(PORTSDK_LIBPATH)/portlib.lib' | |
17f16617 | 1436 | if (defined(env('PORTSDK_LIBPATH'))); |
a1736f37 | 1437 | push @ex_libs, '/nodefaultlib coredll.lib corelibc.lib' |
1438 | if (env('TARGETCPU') =~ /^X86|^ARMV4[IT]/); | |
1439 | return join(" ", @ex_libs); | |
ef5b8296 | 1440 | }), |
5e1b2353 | 1441 | }, |
f09e7ca9 | 1442 | |
7ead0c89 | 1443 | #### MinGW |
9dd4ed28 RL |
1444 | "mingw-common" => { |
1445 | inherit_from => [ 'BASE_unix' ], | |
1446 | template => 1, | |
abe256e7 RL |
1447 | CC => "gcc", |
1448 | CFLAGS => picker(default => "-Wall", | |
8c3bc594 | 1449 | debug => "-g -O0", |
9dd4ed28 | 1450 | release => "-O3"), |
68b8bcf4 | 1451 | cppflags => combine("-DUNICODE -D_UNICODE -DWIN32_LEAN_AND_MEAN", |
abe256e7 | 1452 | threads("-D_MT")), |
68b8bcf4 | 1453 | lib_cppflags => "-DL_ENDIAN", |
98fdbce0 | 1454 | ex_libs => add("-lws2_32 -lgdi32 -lcrypt32"), |
9c62a279 | 1455 | thread_scheme => "winthreads", |
5e1b2353 | 1456 | dso_scheme => "win32", |
520f434b | 1457 | shared_target => "mingw-shared", |
8c3bc594 | 1458 | shared_cppflags => add("_WINDLL"), |
68ab559a | 1459 | shared_ldflag => "-static-libgcc", |
9dd4ed28 RL |
1460 | |
1461 | perl_platform => 'mingw', | |
1462 | }, | |
1463 | "mingw" => { | |
30478c97 | 1464 | inherit_from => [ "mingw-common" ], |
9dd4ed28 RL |
1465 | CFLAGS => add(picker(release => "-fomit-frame-pointer")), |
1466 | cflags => "-m32", | |
1467 | sys_id => "MINGW32", | |
1468 | bn_ops => add("BN_LLONG"), | |
e6f98ae4 | 1469 | asm_arch => 'x86', |
b19fe714 | 1470 | uplink_arch => 'x86', |
9dd4ed28 | 1471 | perlasm_scheme => "coff", |
64c443e3 | 1472 | shared_rcflag => "--target=pe-i386", |
520f434b | 1473 | multilib => "", |
5e1b2353 | 1474 | }, |
5e1b2353 | 1475 | "mingw64" => { |
b19fe714 | 1476 | # As for uplink_arch. Applink makes it possible to use |
7ead0c89 AP |
1477 | # .dll compiled with one compiler with application compiled with |
1478 | # another compiler. It's possible to engage Applink support in | |
b19fe714 | 1479 | # mingw64 build, but it's not done, because until mingw64 |
7ead0c89 AP |
1480 | # supports structured exception handling, one can't seriously |
1481 | # consider its binaries for using with non-mingw64 run-time | |
1482 | # environment. And as mingw64 is always consistent with itself, | |
1483 | # Applink is never engaged and can as well be omitted. | |
30478c97 | 1484 | inherit_from => [ "mingw-common" ], |
abe256e7 | 1485 | cflags => "-m64", |
5e1b2353 | 1486 | sys_id => "MINGW64", |
9dd4ed28 | 1487 | bn_ops => add("SIXTY_FOUR_BIT"), |
e6f98ae4 | 1488 | asm_arch => 'x86_64', |
b19fe714 | 1489 | uplink_arch => undef, |
5e1b2353 | 1490 | perlasm_scheme => "mingw64", |
64c443e3 | 1491 | shared_rcflag => "--target=pe-x86-64", |
520f434b | 1492 | multilib => "64", |
5e1b2353 | 1493 | }, |
f09e7ca9 | 1494 | |
4d60c7e1 DW |
1495 | #### UEFI |
1496 | "UEFI" => { | |
d2b2221a | 1497 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
1498 | CC => "cc", |
1499 | CFLAGS => "-O", | |
68b8bcf4 | 1500 | lib_cppflags => "-DL_ENDIAN", |
4d60c7e1 DW |
1501 | sys_id => "UEFI", |
1502 | }, | |
1b721050 CZ |
1503 | "UEFI-x86" => { |
1504 | inherit_from => [ "UEFI" ], | |
1505 | asm_arch => 'x86', | |
1506 | perlasm_scheme => "win32n", | |
1507 | }, | |
1508 | "UEFI-x86_64" => { | |
1509 | inherit_from => [ "UEFI" ], | |
1510 | asm_arch => 'x86_64', | |
1511 | perlasm_scheme => "nasm", | |
1512 | }, | |
4d60c7e1 | 1513 | |
7ead0c89 | 1514 | #### UWIN |
5e1b2353 | 1515 | "UWIN" => { |
d2b2221a | 1516 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
1517 | CC => "cc", |
1518 | CFLAGS => "-O -Wall", | |
1519 | lib_cppflags => "-DTERMIOS -DL_ENDIAN", | |
5e1b2353 | 1520 | sys_id => "UWIN", |
a01dab94 | 1521 | bn_ops => "BN_LLONG", |
5e1b2353 RL |
1522 | dso_scheme => "win32", |
1523 | }, | |
f09e7ca9 | 1524 | |
7ead0c89 | 1525 | #### Cygwin |
9dd4ed28 | 1526 | "Cygwin-common" => { |
68ca1737 | 1527 | inherit_from => [ "BASE_unix" ], |
9dd4ed28 RL |
1528 | template => 1, |
1529 | ||
abe256e7 RL |
1530 | CC => "gcc", |
1531 | CFLAGS => picker(default => "-Wall", | |
8864f0de | 1532 | debug => "-g -O0", |
9dd4ed28 | 1533 | release => "-O3"), |
68b8bcf4 | 1534 | lib_cppflags => "-DTERMIOS -DL_ENDIAN", |
5e1b2353 | 1535 | sys_id => "CYGWIN", |
e58d9102 | 1536 | thread_scheme => "pthread", |
5e1b2353 RL |
1537 | dso_scheme => "dlfcn", |
1538 | shared_target => "cygwin-shared", | |
8c3bc594 | 1539 | shared_cppflags => "-D_WINDLL", |
9dd4ed28 RL |
1540 | |
1541 | perl_platform => 'Cygwin', | |
1542 | }, | |
1543 | "Cygwin-x86" => { | |
30478c97 | 1544 | inherit_from => [ "Cygwin-common" ], |
9dd4ed28 RL |
1545 | CFLAGS => add(picker(release => "-O3 -fomit-frame-pointer")), |
1546 | bn_ops => "BN_LLONG", | |
e6f98ae4 | 1547 | asm_arch => 'x86', |
9dd4ed28 | 1548 | perlasm_scheme => "coff", |
5e1b2353 RL |
1549 | }, |
1550 | "Cygwin-x86_64" => { | |
30478c97 | 1551 | inherit_from => [ "Cygwin-common" ], |
abe256e7 | 1552 | CC => "gcc", |
3e9e810f | 1553 | bn_ops => "SIXTY_FOUR_BIT_LONG", |
e6f98ae4 | 1554 | asm_arch => 'x86_64', |
5e1b2353 | 1555 | perlasm_scheme => "mingw64", |
5e1b2353 | 1556 | }, |
b9ee2dac RL |
1557 | # Backward compatibility for those using this target |
1558 | "Cygwin" => { | |
1559 | inherit_from => [ "Cygwin-x86" ] | |
1560 | }, | |
1561 | # In case someone constructs the Cygwin target name themself | |
1562 | "Cygwin-i386" => { | |
1563 | inherit_from => [ "Cygwin-x86" ] | |
1564 | }, | |
1565 | "Cygwin-i486" => { | |
1566 | inherit_from => [ "Cygwin-x86" ] | |
1567 | }, | |
1568 | "Cygwin-i586" => { | |
1569 | inherit_from => [ "Cygwin-x86" ] | |
1570 | }, | |
1571 | "Cygwin-i686" => { | |
1572 | inherit_from => [ "Cygwin-x86" ] | |
1573 | }, | |
f09e7ca9 | 1574 | |
f09e7ca9 | 1575 | ##### MacOS X (a.k.a. Darwin) setup |
7ead0c89 | 1576 | "darwin-common" => { |
d2b2221a | 1577 | inherit_from => [ "BASE_unix" ], |
7ead0c89 | 1578 | template => 1, |
abe256e7 RL |
1579 | CC => "cc", |
1580 | CFLAGS => picker(debug => "-g -O0", | |
8c3bc594 RL |
1581 | release => "-O3"), |
1582 | cppflags => threads("-D_REENTRANT"), | |
53043311 | 1583 | lflags => add("-Wl,-search_paths_first"), |
5e1b2353 | 1584 | sys_id => "MACOSX", |
3e9e810f | 1585 | bn_ops => "BN_LLONG RC4_CHAR", |
9c62a279 | 1586 | thread_scheme => "pthreads", |
5e1b2353 RL |
1587 | perlasm_scheme => "osx32", |
1588 | dso_scheme => "dlfcn", | |
0c873419 | 1589 | ranlib => "ranlib -c", |
5e1b2353 | 1590 | shared_target => "darwin-shared", |
0c873419 | 1591 | shared_cflag => "-fPIC", |
d4453024 | 1592 | shared_extension => ".\$(SHLIB_VERSION_NUMBER).dylib", |
5e1b2353 | 1593 | }, |
c75065e1 AP |
1594 | # Option "freeze" such as -std=gnu9x can't negatively interfere |
1595 | # with future defaults for below two targets, because MacOS X | |
1596 | # for PPC has no future, it was discontinued by vendor in 2009. | |
c9741726 RL |
1597 | "darwin-ppc-cc" => { inherit_from => [ "darwin-ppc" ] }, # Historic alias |
1598 | "darwin-ppc" => { | |
30478c97 | 1599 | inherit_from => [ "darwin-common" ], |
8c3bc594 | 1600 | cflags => add("-arch ppc -std=gnu9x -Wa,-force_cpusubtype_ALL"), |
68b8bcf4 | 1601 | lib_cppflags => add("-DB_ENDIAN"), |
107783d9 | 1602 | shared_cflag => add("-fno-common"), |
e6f98ae4 | 1603 | asm_arch => 'ppc32', |
7ead0c89 | 1604 | perlasm_scheme => "osx32", |
7ead0c89 | 1605 | }, |
c9741726 RL |
1606 | "darwin64-ppc-cc" => { inherit_from => [ "darwin64-ppc" ] }, # Historic alias |
1607 | "darwin64-ppc" => { | |
30478c97 | 1608 | inherit_from => [ "darwin-common" ], |
8c3bc594 | 1609 | cflags => add("-arch ppc64 -std=gnu9x"), |
68b8bcf4 | 1610 | lib_cppflags => add("-DB_ENDIAN"), |
3e9e810f | 1611 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR", |
e6f98ae4 | 1612 | asm_arch => 'ppc64', |
5e1b2353 | 1613 | perlasm_scheme => "osx64", |
5e1b2353 | 1614 | }, |
c9741726 RL |
1615 | "darwin-i386-cc" => { inherit_from => [ "darwin-i386" ] }, # Historic alias |
1616 | "darwin-i386" => { | |
30478c97 | 1617 | inherit_from => [ "darwin-common" ], |
abe256e7 RL |
1618 | CFLAGS => add(picker(release => "-fomit-frame-pointer")), |
1619 | cflags => add("-arch i386"), | |
68b8bcf4 | 1620 | lib_cppflags => add("-DL_ENDIAN"), |
3e9e810f | 1621 | bn_ops => "BN_LLONG RC4_INT", |
e6f98ae4 | 1622 | asm_arch => 'x86', |
5e1b2353 | 1623 | perlasm_scheme => "macosx", |
5e1b2353 | 1624 | }, |
c9741726 RL |
1625 | "darwin64-x86_64-cc" => { inherit_from => [ "darwin64-x86_64" ] }, # Historic alias |
1626 | "darwin64-x86_64" => { | |
30478c97 | 1627 | inherit_from => [ "darwin-common" ], |
abe256e7 RL |
1628 | CFLAGS => add("-Wall"), |
1629 | cflags => add("-arch x86_64"), | |
68b8bcf4 | 1630 | lib_cppflags => add("-DL_ENDIAN"), |
3e9e810f | 1631 | bn_ops => "SIXTY_FOUR_BIT_LONG", |
e6f98ae4 | 1632 | asm_arch => 'x86_64', |
5e1b2353 | 1633 | perlasm_scheme => "macosx", |
5e1b2353 | 1634 | }, |
23f04372 B |
1635 | "darwin64-arm64-cc" => { inherit_from => [ "darwin64-arm64" ] }, # "Historic" alias |
1636 | "darwin64-arm64" => { | |
1637 | inherit_from => [ "darwin-common" ], | |
1638 | CFLAGS => add("-Wall"), | |
1639 | cflags => add("-arch arm64"), | |
1640 | lib_cppflags => add("-DL_ENDIAN"), | |
1641 | bn_ops => "SIXTY_FOUR_BIT_LONG", | |
7c0e98a5 | 1642 | asm_arch => 'aarch64', |
23f04372 B |
1643 | perlasm_scheme => "ios64", |
1644 | }, | |
7ead0c89 | 1645 | |
f09e7ca9 | 1646 | ##### GNU Hurd |
5e1b2353 | 1647 | "hurd-x86" => { |
d2b2221a | 1648 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
1649 | CC => "gcc", |
1650 | CFLAGS => "-O3 -fomit-frame-pointer -Wall", | |
1651 | cflags => threads("-pthread"), | |
68b8bcf4 | 1652 | lib_cppflags => "-DL_ENDIAN", |
fcd2ac80 | 1653 | ex_libs => add("-ldl", threads("-pthread")), |
a01dab94 | 1654 | bn_ops => "BN_LLONG", |
e6f98ae4 RL |
1655 | asm_arch => 'x86', |
1656 | perlasm_scheme => 'elf', | |
9c62a279 | 1657 | thread_scheme => "pthreads", |
5e1b2353 RL |
1658 | dso_scheme => "dlfcn", |
1659 | shared_target => "linux-shared", | |
1660 | shared_cflag => "-fPIC", | |
1661 | }, | |
f09e7ca9 | 1662 | |
f09e7ca9 | 1663 | ##### VxWorks for various targets |
5e1b2353 | 1664 | "vxworks-ppc60x" => { |
d2b2221a | 1665 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
1666 | CC => "ccppc", |
1667 | CFLAGS => "-O2 -Wall -fstrength-reduce", | |
1668 | cflags => "-mrtp -mhard-float -mstrict-align -fno-implicit-fp -fno-builtin -fno-strict-aliasing", | |
8c3bc594 RL |
1669 | cppflags => combine("-D_REENTRANT -DPPC32_fp60x -DCPU=PPC32", |
1670 | "_DTOOL_FAMILY=gnu -DTOOL=gnu", | |
1671 | "-I\$(WIND_BASE)/target/usr/h", | |
1672 | "-I\$(WIND_BASE)/target/usr/h/wrn/coreip"), | |
5e1b2353 | 1673 | sys_id => "VXWORKS", |
47eeaf45 RL |
1674 | lflags => add("-L \$(WIND_BASE)/target/usr/lib/ppc/PPC32/common"), |
1675 | ex_libs => add("-Wl,--defsym,__wrs_rtp_base=0xe0000000"), | |
5e1b2353 RL |
1676 | }, |
1677 | "vxworks-ppcgen" => { | |
d2b2221a | 1678 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
1679 | CC => "ccppc", |
1680 | CFLAGS => "-O1 -Wall", | |
1681 | cflags => "-mrtp -msoft-float -mstrict-align -fno-builtin -fno-strict-aliasing", | |
8c3bc594 RL |
1682 | cppflags => combine("-D_REENTRANT -DPPC32 -DCPU=PPC32", |
1683 | "-DTOOL_FAMILY=gnu -DTOOL=gnu", | |
1684 | "-I\$(WIND_BASE)/target/usr/h", | |
1685 | "-I\$(WIND_BASE)/target/usr/h/wrn/coreip"), | |
5e1b2353 | 1686 | sys_id => "VXWORKS", |
47eeaf45 RL |
1687 | lflags => add("-L \$(WIND_BASE)/target/usr/lib/ppc/PPC32/sfcommon"), |
1688 | ex_libs => add("-Wl,--defsym,__wrs_rtp_base=0xe0000000"), | |
5e1b2353 RL |
1689 | }, |
1690 | "vxworks-ppc405" => { | |
d2b2221a | 1691 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
1692 | CC => "ccppc", |
1693 | CFLAGS => "-g", | |
1694 | cflags => "-msoft-float -mlongcall", | |
8c3bc594 RL |
1695 | cppflags => combine("-D_REENTRANT -DPPC32 -DCPU=PPC405", |
1696 | "-DTOOL_FAMILY=gnu -DTOOL=gnu", | |
1697 | "-I\$(WIND_BASE)/target/h"), | |
5e1b2353 | 1698 | sys_id => "VXWORKS", |
47eeaf45 | 1699 | lflags => add("-r"), |
5e1b2353 RL |
1700 | }, |
1701 | "vxworks-ppc750" => { | |
d2b2221a | 1702 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
1703 | CC => "ccppc", |
1704 | CFLAGS => "-ansi -fvolatile -Wall \$(DEBUG_FLAG)", | |
1705 | cflags => "-nostdinc -fno-builtin -fno-for-scope -fsigned-char -msoft-float -mlongcall", | |
8c3bc594 RL |
1706 | cppflags => combine("-DPPC750 -D_REENTRANT -DCPU=PPC604", |
1707 | "-I\$(WIND_BASE)/target/h"), | |
5e1b2353 | 1708 | sys_id => "VXWORKS", |
47eeaf45 | 1709 | lflags => add("-r"), |
5e1b2353 RL |
1710 | }, |
1711 | "vxworks-ppc750-debug" => { | |
d2b2221a | 1712 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
1713 | CC => "ccppc", |
1714 | CFLAGS => "-ansi -fvolatile -Wall -g", | |
1715 | cflags => "-nostdinc -fno-builtin -fno-for-scope -fsigned-char -msoft-float -mlongcall", | |
8c3bc594 RL |
1716 | cppflags => combine("-DPPC750 -D_REENTRANT -DCPU=PPC604", |
1717 | "-DPEDANTIC -DDEBUG", | |
1718 | "-I\$(WIND_BASE)/target/h"), | |
5e1b2353 | 1719 | sys_id => "VXWORKS", |
47eeaf45 | 1720 | lflags => add("-r"), |
5e1b2353 RL |
1721 | }, |
1722 | "vxworks-ppc860" => { | |
d2b2221a | 1723 | inherit_from => [ "BASE_unix" ], |
abe256e7 | 1724 | CC => "ccppc", |
8c3bc594 RL |
1725 | cflags => "-nostdinc -msoft-float", |
1726 | cppflags => combine("-DCPU=PPC860 -DNO_STRINGS_H", | |
1727 | "-I\$(WIND_BASE)/target/h"), | |
5e1b2353 | 1728 | sys_id => "VXWORKS", |
47eeaf45 | 1729 | lflags => add("-r"), |
5e1b2353 RL |
1730 | }, |
1731 | "vxworks-simlinux" => { | |
d2b2221a | 1732 | inherit_from => [ "BASE_unix" ], |
abe256e7 | 1733 | CC => "ccpentium", |
8c3bc594 RL |
1734 | cflags => "-B\$(WIND_BASE)/host/\$(WIND_HOST_TYPE)/lib/gcc-lib/ -fno-builtin -fno-defer-pop", |
1735 | cppflags => combine("-D_VSB_CONFIG_FILE=\"\$(WIND_BASE)/target/lib/h/config/vsbConfig.h\"", | |
1736 | "-DL_ENDIAN -DCPU=SIMLINUX -DNO_STRINGS_H", | |
1737 | "-DTOOL_FAMILY=gnu -DTOOL=gnu", | |
1738 | "-DOPENSSL_NO_HW_PADLOCK", | |
1739 | "-I\$(WIND_BASE)/target/h", | |
1740 | "-I\$(WIND_BASE)/target/h/wrn/coreip"), | |
5e1b2353 | 1741 | sys_id => "VXWORKS", |
47eeaf45 | 1742 | lflags => add("-r"), |
5e1b2353 RL |
1743 | ranlib => "ranlibpentium", |
1744 | }, | |
1745 | "vxworks-mips" => { | |
30478c97 | 1746 | inherit_from => [ "BASE_unix" ], |
abe256e7 RL |
1747 | CC => "ccmips", |
1748 | CFLAGS => "-O -G 0", | |
1749 | cflags => "-mrtp -mips2 -B\$(WIND_BASE)/host/\$(WIND_HOST_TYPE)/lib/gcc-lib/ -msoft-float -mno-branch-likely -fno-builtin -fno-defer-pop", | |
8c3bc594 RL |
1750 | cppflags => combine("-D_VSB_CONFIG_FILE=\"\$(WIND_BASE)/target/lib/h/config/vsbConfig.h\"", |
1751 | "-DCPU=MIPS32 -DNO_STRINGS_H", | |
1752 | "-DTOOL_FAMILY=gnu -DTOOL=gnu", | |
1753 | "-DOPENSSL_NO_HW_PADLOCK", | |
1754 | threads("-D_REENTRANT"), | |
1755 | "-I\$(WIND_BASE)/target/h", | |
1756 | "-I\$(WIND_BASE)/target/h/wrn/coreip"), | |
5e1b2353 | 1757 | sys_id => "VXWORKS", |
47eeaf45 RL |
1758 | lflags => add("-L \$(WIND_BASE)/target/usr/lib/mips/MIPSI32/sfcommon"), |
1759 | ex_libs => add("-Wl,--defsym,__wrs_rtp_base=0xe0000000"), | |
9c62a279 | 1760 | thread_scheme => "pthreads", |
e6f98ae4 | 1761 | asm_arch => 'mips32', |
5e1b2353 RL |
1762 | perlasm_scheme => "o32", |
1763 | ranlib => "ranlibmips", | |
1764 | }, | |
f09e7ca9 | 1765 | |
7ead0c89 | 1766 | #### uClinux |
5e1b2353 | 1767 | "uClinux-dist" => { |
d2b2221a | 1768 | inherit_from => [ "BASE_unix" ], |
abe256e7 | 1769 | CC => sub { env('CC') }, |
8c3bc594 | 1770 | cppflags => threads("-D_REENTRANT"), |
98fdbce0 | 1771 | ex_libs => add("\$(LDLIBS)"), |
5e1b2353 | 1772 | bn_ops => "BN_LLONG", |
9c62a279 | 1773 | thread_scheme => "pthreads", |
17f16617 | 1774 | dso_scheme => sub { env('LIBSSL_dlfcn') }, |
5e1b2353 RL |
1775 | shared_target => "linux-shared", |
1776 | shared_cflag => "-fPIC", | |
17f16617 | 1777 | ranlib => sub { env('RANLIB') }, |
5e1b2353 RL |
1778 | }, |
1779 | "uClinux-dist64" => { | |
d2b2221a | 1780 | inherit_from => [ "BASE_unix" ], |
abe256e7 | 1781 | CC => sub { env('CC') }, |
8c3bc594 | 1782 | cppflags => threads("-D_REENTRANT"), |
98fdbce0 | 1783 | ex_libs => add("\$(LDLIBS)"), |
5e1b2353 | 1784 | bn_ops => "SIXTY_FOUR_BIT_LONG", |
9c62a279 | 1785 | thread_scheme => "pthreads", |
17f16617 | 1786 | dso_scheme => sub { env('LIBSSL_dlfcn') }, |
5e1b2353 RL |
1787 | shared_target => "linux-shared", |
1788 | shared_cflag => "-fPIC", | |
17f16617 | 1789 | ranlib => sub { env('RANLIB') }, |
5e1b2353 | 1790 | }, |
f09e7ca9 | 1791 | |
e84193e4 | 1792 | ##### VMS |
ab907189 RL |
1793 | # Most things happen in vms-generic. |
1794 | # Note that vms_info extracts the pointer size from the end of | |
1795 | # the target name, and will assume that anything matching /-p\d+$/ | |
1796 | # indicates the pointer size setting for the desired target. | |
e84193e4 | 1797 | "vms-generic" => { |
d2b2221a | 1798 | inherit_from => [ "BASE_VMS" ], |
e84193e4 | 1799 | template => 1, |
abe256e7 RL |
1800 | CC => "CC/DECC", |
1801 | CPP => '$(CC)/PREPROCESS_ONLY=SYS$OUTPUT:', | |
1802 | CFLAGS => | |
ab907189 RL |
1803 | combine(picker(default => "/STANDARD=(ISOC94,RELAXED)/NOLIST/PREFIX=ALL", |
1804 | debug => "/NOOPTIMIZE/DEBUG", | |
1805 | release => "/OPTIMIZE/NODEBUG"), | |
1806 | sub { my @warnings = | |
1807 | @{vms_info()->{disable_warns}}; | |
1808 | @warnings | |
1809 | ? "/WARNINGS=DISABLE=(".join(",",@warnings).")" : (); }), | |
68b8bcf4 | 1810 | lib_defines => |
ab907189 RL |
1811 | add("OPENSSL_USE_NODELETE", |
1812 | sub { | |
1813 | return vms_info()->{def_zlib} | |
1814 | ? "LIBZ=\"\"\"".vms_info()->{def_zlib}."\"\"\"" : (); | |
1815 | }), | |
2de2df7f | 1816 | lflags => picker(default => "/MAP='F\$PARSE(\".MAP\",\"\$\@\")'", |
1ae4c07e | 1817 | debug => "/DEBUG/TRACEBACK", |
8864f0de | 1818 | release => "/NODEBUG/NOTRACEBACK"), |
2935f624 | 1819 | # Because of dso_cflags below, we can't set the generic |cflags| here, |
79c44b4e | 1820 | # as it can't be overridden, so we set separate C flags for libraries |
2935f624 RL |
1821 | # and binaries instead. |
1822 | bin_cflags => add("/NAMES=(AS_IS,SHORTENED)/EXTERN_MODEL=STRICT_REFDEF"), | |
68a39960 | 1823 | lib_cflags => add("/NAMES=(AS_IS,SHORTENED)/EXTERN_MODEL=STRICT_REFDEF"), |
2935f624 RL |
1824 | # For modules specifically, we assume that they only use public |
1825 | # OpenSSL symbols, and therefore don't need to mangle names on | |
1826 | # their own. | |
1827 | dso_cflags => "", | |
ab907189 | 1828 | ex_libs => add(sub { return vms_info()->{zlib} || (); }), |
e84193e4 | 1829 | shared_target => "vms-shared", |
ef2dfc99 RL |
1830 | # def_flag made to empty string so a .opt file gets generated |
1831 | shared_defflag => '', | |
ac722c9a | 1832 | dso_scheme => "vms", |
9c62a279 | 1833 | thread_scheme => "pthreads", |
e84193e4 | 1834 | |
abe256e7 RL |
1835 | AS => sub { vms_info()->{AS} }, |
1836 | ASFLAGS => sub { vms_info()->{ASFLAGS} }, | |
ab7134ef | 1837 | asoutflag => sub { vms_info()->{asoutflag} }, |
abe256e7 | 1838 | asflags => sub { vms_info()->{asflags} }, |
ab7134ef RL |
1839 | perlasm_scheme => sub { vms_info()->{perlasm_scheme} }, |
1840 | ||
d1dd5d6f RL |
1841 | disable => add('pinshared'), |
1842 | ||
e84193e4 RL |
1843 | }, |
1844 | ||
ab907189 RL |
1845 | # From HELP CC/POINTER_SIZE: |
1846 | # | |
1847 | # ---------- | |
1848 | # LONG[=ARGV] The compiler assumes 64-bit pointers. If the ARGV option to | |
1849 | # LONG or 64 is present, the main argument argv will be an | |
1850 | # array of long pointers instead of an array of short pointers. | |
1851 | # | |
1852 | # 64[=ARGV] Same as LONG. | |
1853 | # ---------- | |
1854 | # | |
1855 | # We don't want the hassle of dealing with 32-bit pointers with argv, so | |
1856 | # we force it to have 64-bit pointers, see the added cflags in the -p64 | |
1857 | # config targets below. | |
1858 | ||
e84193e4 RL |
1859 | "vms-alpha" => { |
1860 | inherit_from => [ "vms-generic" ], | |
ab907189 RL |
1861 | bn_ops => "SIXTY_FOUR_BIT RC4_INT", |
1862 | pointer_size => "", | |
e84193e4 | 1863 | }, |
52d86d9b | 1864 | "vms-alpha-p32" => { |
ab907189 RL |
1865 | inherit_from => [ "vms-alpha" ], |
1866 | cflags => add("/POINTER_SIZE=32"), | |
1867 | pointer_size => "32", | |
e84193e4 | 1868 | }, |
52d86d9b | 1869 | "vms-alpha-p64" => { |
ab907189 RL |
1870 | inherit_from => [ "vms-alpha" ], |
1871 | cflags => add("/POINTER_SIZE=64=ARGV"), | |
1872 | pointer_size => "64", | |
e84193e4 RL |
1873 | }, |
1874 | "vms-ia64" => { | |
30478c97 | 1875 | inherit_from => [ "vms-generic" ], |
ab907189 | 1876 | bn_ops => "SIXTY_FOUR_BIT RC4_INT", |
e6f98ae4 RL |
1877 | asm_arch => sub { vms_info()->{AS} ? 'ia64' : undef }, |
1878 | perlasm_scheme => 'ias', | |
ab907189 | 1879 | pointer_size => "", |
0f4844a9 | 1880 | |
e84193e4 | 1881 | }, |
52d86d9b | 1882 | "vms-ia64-p32" => { |
ab907189 RL |
1883 | inherit_from => [ "vms-ia64" ], |
1884 | cflags => add("/POINTER_SIZE=32"), | |
1885 | pointer_size => "32", | |
e84193e4 | 1886 | }, |
52d86d9b | 1887 | "vms-ia64-p64" => { |
ab907189 RL |
1888 | inherit_from => [ "vms-ia64" ], |
1889 | cflags => add("/POINTER_SIZE=64=ARGV"), | |
1890 | pointer_size => "64", | |
e84193e4 RL |
1891 | }, |
1892 | ||
f09e7ca9 | 1893 | ); |