2 ## Standard openssl configuration targets.
4 # Helper functions for the Windows configs
5 my $vc_win64a_info = {};
7 unless (%$vc_win64a_info) {
8 if (`nasm -v 2>NUL` =~ /NASM version ([0-9]+\.[0-9]+)/ && $1 >= 2.0) {
9 $vc_win64a_info = { AS => "nasm",
11 asflags => "-Ox -f win64 -DNEAR",
13 } elsif ($disabled{asm}) {
14 # assembler is still used to compile uplink shim
15 $vc_win64a_info = { AS => "ml64",
16 ASFLAGS => "/nologo /Zi",
17 asflags => "/c /Cp /Cx",
20 $die->("NASM not found - make sure it's installed and available on %PATH%\n");
21 $vc_win64a_info = { AS => "{unknown}",
27 return $vc_win64a_info;
30 my $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 "") {
36 $vc_win32_info = { AS => $ver ge $vew ? "nasm" : "nasmw",
38 asflags => "-f win32",
40 perlasm_scheme => "win32n" };
41 } elsif ($disabled{asm}) {
42 # not actually used, uplink shim is inlined into C code
43 $vc_win32_info = { AS => "ml",
44 ASFLAGS => "/nologo /Zi",
45 asflags => "/Cp /coff /c /Cx",
47 perlasm_scheme => "win32" };
49 $die->("NASM not found - make sure it's installed and available on %PATH%\n");
50 $vc_win32_info = { AS => "{unknown}",
54 perlasm_scheme => "win32" };
57 return $vc_win32_info;
60 my $vc_wince_info = {};
62 unless (%$vc_wince_info) {
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')));
69 # Idea behind this is to mimic flags set by eVC++ IDE...
71 my $wcevers = env('OSVERSION'); # WCENNN
74 if ($wcevers =~ /^WCE([1-9])([0-9]{2})$/) {
76 $wceverdotnum = "$1.$2";
78 $die->('%OSVERSION% value is insane');
79 $wcevernum = "{unknown}";
80 $wceverdotnum = "{unknown}";
82 my $wcecdefs = "-D_WIN32_WCE=$wcevernum -DUNDER_CE=$wcevernum"; # -D_WIN32_WCE=NNN
83 my $wcelflag = "/subsystem:windowsce,$wceverdotnum"; # ...,N.NN
85 my $wceplatf = env('PLATFORM');
87 $wceplatf =~ tr/a-z0-9 /A-Z0-9_/;
88 $wcecdefs .= " -DWCE_PLATFORM_$wceplatf";
90 my $wcetgt = env('TARGETCPU'); # just shorter name...
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; };
118 $vc_wince_info = { cppflags => $wcecdefs,
119 lflags => $wcelflag };
121 return $vc_wince_info;
124 # Helper functions for the VMS configs
127 my $pointer_size_str = $config{target} =~ m|-p(\d+)$| ? $1 : "";
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
132 if (%$vms_info && $vms_info->{pointer_size} ne $pointer_size_str) {
136 unless (%$vms_info) {
137 $vms_info->{disable_warns} = [
138 "CXXPRAGMANA", # Shut up about unknown / unsupported pragmas
140 $vms_info->{pointer_size} = $pointer_size_str;
141 if ($pointer_size_str eq "64") {
142 `PIPE CC /NOCROSS_REFERENCE /NOLIST /NOOBJECT /WARNINGS = DISABLE = ( MAYLOSEDATA3, EMPTYFILE ) NL: 2> NL:`;
144 push @{$vms_info->{disable_warns}}, "MAYLOSEDATA3";
148 unless ($disabled{zlib}) {
149 my $default_zlib = 'GNV$LIBZSHR' . $pointer_size_str;
150 if (defined($disabled{"zlib-dynamic"})) {
151 $vms_info->{zlib} = $withargs{zlib_lib} || "$default_zlib/SHARE";
153 $vms_info->{def_zlib} = $withargs{zlib_lib} || $default_zlib;
154 # In case the --with-zlib-lib value contains something like
155 # /SHARE or /LIB or so at the end, remove it.
156 $vms_info->{def_zlib} =~ s|/.*$||g;
160 if ($config{target} =~ /-ia64/) {
161 `PIPE ias -H 2> NL:`;
163 $vms_info->{AS} = "ias";
164 $vms_info->{ASFLAGS} = '-d debug';
165 $vms_info->{asflags} = '"-N" vms_upcase';
166 $vms_info->{asoutflag} = "-o ";
167 $vms_info->{perlasm_scheme} = "ias";
176 #### Basic configs that should work on any 32-bit box
178 inherit_from => [ "BASE_unix" ],
180 CFLAGS => picker(debug => "-O0 -g",
182 thread_scheme => "(unknown)",
183 bn_ops => "BN_LLONG",
186 inherit_from => [ "BASE_unix" ],
189 thread_scheme => "(unknown)",
192 #### VOS Configurations
194 inherit_from => [ "BASE_unix" ],
196 CFLAGS => picker(default => "-Wall",
199 cppflags => "-D_POSIX_C_SOURCE=200112L -D_BSD -D_VOS_EXTENDED_NAMES",
200 lib_cppflags => "-DB_ENDIAN",
201 thread_scheme => "(unknown)",
203 lflags => add("-Wl,-map"),
204 bn_ops => "BN_LLONG",
205 shared_extension => ".so",
208 #### Solaris configurations
209 "solaris-common" => {
210 inherit_from => [ "BASE_unix" ],
212 lib_cppflags => "-DFILIO_H",
213 ex_libs => add("-lsocket -lnsl -ldl"),
214 dso_scheme => "dlfcn",
215 thread_scheme => "pthreads",
217 #### Solaris common with Sun C setups
218 "solaris-common-cc" => {
219 inherit_from => [ "solaris-common" ],
221 shared_target => "solaris",
222 shared_ldflag => "-Wl,-Bsymbolic",
223 shared_defflag => "-Wl,-M,",
224 shared_sonameflag=> "-Wl,-h,",
226 #### Solaris common with GNU C setups
227 "solaris-common-gcc" => {
228 inherit_from => [ "solaris-common" ],
230 shared_target => "solaris-gcc-shared", # The rest is on shared_info.pl
232 #### Solaris x86 with GNU C setups
233 "solaris-x86-gcc" => {
234 # NB. GNU C has to be configured to use GNU assembler, and not
235 # /usr/ccs/bin/as. Failure to comply will result in compile
236 # failures [at least] in 32-bit build.
237 inherit_from => [ "solaris-common-gcc" ],
239 CFLAGS => add_before(picker(default => "-Wall",
241 release => "-O3 -fomit-frame-pointer")),
242 cflags => add(threads("-pthread")),
243 lib_cppflags => add("-DL_ENDIAN"),
244 ex_libs => add(threads("-pthread")),
245 bn_ops => "BN_LLONG",
246 shared_cflag => "-fPIC",
247 shared_ldflag => add_before("-shared -static-libgcc"),
249 perlasm_scheme => 'elf',
251 "solaris64-x86_64-gcc" => {
252 # -shared -static-libgcc might appear controversial, but modules
253 # taken from static libgcc do not have relocations and linking
254 # them into our shared objects doesn't have any negative side
255 # effects. On the contrary, doing so makes it possible to use
256 # gcc shared build with Sun C. Given that gcc generates faster
257 # code [thanks to inline assembler], I would actually recommend
258 # to consider using gcc shared build even with vendor compiler:-)
259 # -- <appro@openssl.org>
260 inherit_from => [ "solaris-common-gcc" ],
262 CFLAGS => add_before(picker(default => "-Wall",
265 cflags => add_before("-m64", threads("-pthread")),
266 lib_cppflags => add("-DL_ENDIAN"),
267 ex_libs => add(threads("-pthread")),
268 bn_ops => "SIXTY_FOUR_BIT_LONG",
269 asm_arch => 'x86_64',
270 perlasm_scheme => "elf",
271 shared_cflag => "-fPIC",
272 shared_ldflag => add_before("-shared -static-libgcc"),
276 #### Solaris x86 with Sun C setups
277 # There used to be solaris-x86-cc target, but it was removed,
278 # primarily because vendor assembler can't assemble our modules
279 # with -KPIC flag. As result it, assembly support, was not even
280 # available as option. But its lack means lack of side-channel
281 # resistant code, which is incompatible with security by today's
282 # standards. Fortunately gcc is readily available prepackaged
283 # option, which we can firmly point at...
285 # On related note, solaris64-x86_64-cc target won't compile code
286 # paths utilizing AVX and post-Haswell instruction extensions.
287 # Consider switching to solaris64-x86_64-gcc even here...
289 "solaris64-x86_64-cc" => {
290 inherit_from => [ "solaris-common-cc" ],
292 CFLAGS => add_before(picker(debug => "-g",
293 release => "-xO5 -xdepend -xbuiltin")),
294 cflags => add_before("-xarch=generic64 -xstrconst -Xa"),
295 cppflags => add(threads("-D_REENTRANT")),
296 lib_cppflags => add("-DL_ENDIAN"),
297 thread_scheme => "pthreads",
298 lflags => add(threads("-mt")),
299 ex_libs => add(threads("-lpthread")),
300 bn_ops => "SIXTY_FOUR_BIT_LONG",
301 asm_arch => 'x86_64',
302 perlasm_scheme => "elf",
303 shared_cflag => "-KPIC",
304 shared_ldflag => add_before("-G -dy -z text"),
308 #### SPARC Solaris with GNU C setups
309 "solaris-sparcv7-gcc" => {
310 inherit_from => [ "solaris-common-gcc" ],
312 CFLAGS => add_before(picker(default => "-Wall",
315 cflags => add(threads("-pthread")),
316 lib_cppflags => add("-DB_ENDIAN -DBN_DIV2W"),
317 ex_libs => add(threads("-pthread")),
318 bn_ops => "BN_LLONG RC4_CHAR",
319 shared_cflag => "-fPIC",
320 shared_ldflag => add_before("-shared"),
322 "solaris-sparcv8-gcc" => {
323 inherit_from => [ "solaris-sparcv7-gcc" ],
324 cflags => add_before("-mcpu=v8"),
325 asm_arch => 'sparcv8',
326 perlasm_scheme => 'void',
328 "solaris-sparcv9-gcc" => {
329 # -m32 should be safe to add as long as driver recognizes
331 inherit_from => [ "solaris-sparcv7-gcc" ],
332 cflags => add_before("-m32 -mcpu=ultrasparc"),
333 asm_arch => 'sparcv9',
334 perlasm_scheme => 'void',
336 "solaris64-sparcv9-gcc" => {
337 inherit_from => [ "solaris-sparcv9-gcc" ],
338 cflags => sub { my $f=join(" ",@_); $f =~ s/\-m32/-m64/; $f; },
339 bn_ops => "BN_LLONG RC4_CHAR",
343 #### SPARC Solaris with Sun C setups
344 # SC4.0 doesn't pass 'make test', upgrade to SC5.0 or SC4.2.
345 # SC4.2 is ok, better than gcc even on bn as long as you tell it -xarch=v8
346 # SC5.0 note: Compiler common patch 107357-01 or later is required!
347 "solaris-sparcv7-cc" => {
348 inherit_from => [ "solaris-common-cc" ],
350 CFLAGS => add_before(picker(debug => "-g",
351 release => "-xO5 -xdepend")),
352 cflags => add_before("-xstrconst -Xa"),
353 cppflags => add(threads("-D_REENTRANT")),
354 lib_cppflags => add("-DB_ENDIAN -DBN_DIV2W"),
355 lflags => add(threads("-mt")),
356 ex_libs => add(threads("-lpthread")),
357 bn_ops => "BN_LLONG RC4_CHAR",
358 shared_cflag => "-KPIC",
359 shared_ldflag => add_before("-G -dy -z text"),
362 "solaris-sparcv8-cc" => {
363 inherit_from => [ "solaris-sparcv7-cc" ],
364 cflags => add_before("-xarch=v8"),
365 asm_arch => 'sparcv8',
366 perlasm_scheme => 'void',
368 "solaris-sparcv9-cc" => {
369 inherit_from => [ "solaris-sparcv7-cc" ],
370 cflags => add_before("-xarch=v8plus"),
371 asm_arch => 'sparcv9',
372 perlasm_scheme => 'void',
374 "solaris64-sparcv9-cc" => {
375 inherit_from => [ "solaris-sparcv7-cc" ],
376 cflags => add_before("-m64 -xarch=sparc"),
377 bn_ops => "BN_LLONG RC4_CHAR",
378 asm_arch => 'sparcv9',
379 perlasm_scheme => 'void',
383 #### IRIX 6.x configs
384 # Only N32 and N64 ABIs are supported.
386 inherit_from => [ "BASE_unix" ],
388 cppflags => threads("-D_SGI_MP_SOURCE"),
389 lib_cppflags => "-DB_ENDIAN",
390 ex_libs => add(threads("-lpthread")),
391 thread_scheme => "pthreads",
392 dso_scheme => "dlfcn",
393 shared_target => "self",
394 shared_ldflag => "-shared -Wl,-Bsymbolic",
395 shared_sonameflag=> "-Wl,-soname,",
397 "irix-mips3-gcc" => {
398 inherit_from => [ "irix-common" ],
400 CFLAGS => picker(debug => "-g -O0",
402 LDFLAGS => "-static-libgcc",
403 cflags => "-mabi=n32",
404 bn_ops => "RC4_CHAR SIXTY_FOUR_BIT",
405 asm_arch => 'mips64',
406 perlasm_scheme => "n32",
410 inherit_from => [ "irix-common" ],
412 CFLAGS => picker(debug => "-g -O0",
414 cflags => "-n32 -mips3 -use_readonly_const -G0 -rdata_shared",
415 bn_ops => "RC4_CHAR SIXTY_FOUR_BIT",
416 asm_arch => 'mips64',
417 perlasm_scheme => "n32",
421 "irix64-mips4-gcc" => {
422 inherit_from => [ "irix-common" ],
424 CFLAGS => picker(debug => "-g -O0",
426 LDFLAGS => "-static-libgcc",
427 cflags => "-mabi=64 -mips4",
428 bn_ops => "RC4_CHAR SIXTY_FOUR_BIT_LONG",
429 asm_arch => 'mips64',
430 perlasm_scheme => "64",
433 "irix64-mips4-cc" => {
434 inherit_from => [ "irix-common" ],
436 CFLAGS => picker(debug => "-g -O0",
438 cflags => "-64 -mips4 -use_readonly_const -G0 -rdata_shared",
439 bn_ops => "RC4_CHAR SIXTY_FOUR_BIT_LONG",
440 asm_arch => 'mips64',
441 perlasm_scheme => "64",
445 #### Unified HP-UX ANSI C configs.
447 # - Originally we were optimizing at +O4 level. It should be noted
448 # that the only difference between +O3 and +O4 is global inter-
449 # procedural analysis. As it has to be performed during the link
450 # stage the compiler leaves behind certain pseudo-code in lib*.a
451 # which might be release or even patch level specific. Generating
452 # the machine code for and analyzing the *whole* program appears
453 # to be *extremely* memory demanding while the performance gain is
454 # actually questionable. The situation is intensified by the default
455 # HP-UX data set size limit (infamous 'maxdsiz' tunable) of 64MB
456 # which is way too low for +O4. In other words, doesn't +O3 make
458 # - Keep in mind that the HP compiler by default generates code
459 # suitable for execution on the host you're currently compiling at.
460 # If the toolkit is meant to be used on various PA-RISC processors
461 # consider './Configure hpux-parisc-[g]cc +DAportable'.
462 # - -DMD32_XARRAY triggers workaround for compiler bug we ran into in
463 # 32-bit message digests. (For the moment of this writing) HP C
464 # doesn't seem to "digest" too many local variables (they make "him"
465 # chew forever:-). For more details look-up MD32_XARRAY comment in
466 # crypto/sha/sha_local.h.
467 # - originally there were 32-bit hpux-parisc2-* targets. They were
468 # scrapped, because a) they were not interchangeable with other 32-bit
469 # targets; b) performance-critical 32-bit assembly modules implement
470 # even PA-RISC 2.0-specific code paths, which are chosen at run-time,
471 # thus adequate performance is provided even with PA-RISC 1.1 build.
473 inherit_from => [ "BASE_unix" ],
475 defines => add("_XOPEN_SOURCE", "_XOPEN_SOURCE_EXTENDED",
476 "_HPUX_ALT_XOPEN_SOCKET_API"),
477 lib_cppflags => "-DB_ENDIAN",
478 thread_scheme => "pthreads",
479 dso_scheme => "dlfcn", # overridden in 32-bit PA-RISC builds
480 shared_target => "self",
481 bin_lflags => "-Wl,+s,+cdp,../:,+cdp,./:",
482 shared_ldflag => "-Wl,-B,symbolic,+vnocompatwarnings,-z,+s,+cdp,../:,+cdp,./:",
483 shared_sonameflag=> "-Wl,+h,",
485 "hpux-parisc-gcc" => {
486 inherit_from => [ "hpux-common" ],
488 CFLAGS => picker(debug => "-O0 -g",
490 cflags => add(threads("-pthread")),
491 lib_cppflags => add("-DBN_DIV2W"),
492 ex_libs => add("-ldld", threads("-pthread")),
493 bn_ops => "BN_LLONG RC4_CHAR",
495 shared_cflag => "-fPIC",
496 shared_ldflag => add_before("-shared"),
497 shared_extension => ".sl.\$(SHLIB_VERSION_NUMBER)",
499 "hpux-parisc1_1-gcc" => {
500 inherit_from => [ "hpux-parisc-gcc" ],
501 asm_arch => 'parisc11',
502 perlasm_scheme => "32",
503 multilib => "/pa1.1",
505 "hpux64-parisc2-gcc" => {
506 inherit_from => [ "hpux-common" ],
508 CFLAGS => combine(picker(debug => "-O0 -g",
510 cflags => add(threads("-pthread")),
511 ex_libs => add("-ldl", threads("-pthread")),
512 bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
513 asm_arch => 'parisc20_64',
514 perlasm_scheme => "64",
515 shared_cflag => "-fpic",
516 shared_ldflag => add_before("-shared"),
517 shared_extension => ".sl.\$(SHLIB_VERSION_NUMBER)",
518 multilib => "/pa20_64",
521 # More attempts at unified 10.X and 11.X targets for HP C compiler.
522 "hpux-parisc-cc" => {
523 inherit_from => [ "hpux-common" ],
525 CFLAGS => picker(debug => "+O0 +d -g",
527 cflags => "+Optrs_strongly_typed -Ae +ESlit",
528 cppflags => threads("-D_REENTRANT"),
529 lib_cppflags => add("-DBN_DIV2W -DMD32_XARRAY"),
530 ex_libs => add("-ldld", threads("-lpthread")),
531 bn_ops => "RC4_CHAR",
533 shared_cflag => "+Z",
534 shared_ldflag => add_before("-b"),
535 shared_extension => ".sl.\$(SHLIB_VERSION_NUMBER)",
537 "hpux-parisc1_1-cc" => {
538 inherit_from => [ "hpux-parisc-cc" ],
539 cflags => add_before("+DA1.1"),
540 asm_arch => 'parisc11',
541 perlasm_scheme => "32",
542 multilib => "/pa1.1",
544 "hpux64-parisc2-cc" => {
545 inherit_from => [ "hpux-common" ],
547 CFLAGS => picker(debug => "+O0 +d -g",
549 cflags => "+DD64 +Optrs_strongly_typed -Ae +ESlit",
550 cppflags => threads("-D_REENTRANT") ,
551 lib_cppflags => add("-DMD32_XARRAY"),
552 ex_libs => add("-ldl", threads("-lpthread")),
553 bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
554 asm_arch => 'parisc20_64',
555 perlasm_scheme => "64",
556 shared_cflag => "+Z",
557 shared_ldflag => add_before("-b"),
558 shared_extension => ".sl.\$(SHLIB_VERSION_NUMBER)",
559 multilib => "/pa20_64",
562 # HP/UX IA-64 targets
564 inherit_from => [ "hpux-common" ],
566 CFLAGS => picker(debug => "+O0 +d -g",
568 cflags => "-Ae +DD32 +Olit=all -z",
569 cppflags => add(threads("-D_REENTRANT")),
570 ex_libs => add("-ldl", threads("-lpthread")),
571 bn_ops => "SIXTY_FOUR_BIT",
573 perlasm_scheme => 'void',
574 shared_cflag => "+Z",
575 shared_ldflag => add_before("-b"),
576 multilib => "/hpux32",
578 "hpux64-ia64-cc" => {
579 inherit_from => [ "hpux-common" ],
581 CFLAGS => picker(debug => "+O0 +d -g",
583 cflags => "-Ae +DD64 +Olit=all -z",
584 cppflags => threads("-D_REENTRANT"),
585 ex_libs => add("-ldl", threads("-lpthread")),
586 bn_ops => "SIXTY_FOUR_BIT_LONG",
588 perlasm_scheme => 'void',
589 shared_cflag => "+Z",
590 shared_ldflag => add_before("-b"),
591 multilib => "/hpux64",
595 inherit_from => [ "hpux-common" ],
597 CFLAGS => picker(debug => "-O0 -g",
599 cflags => add(threads("-pthread")),
600 ex_libs => add("-ldl", threads("-pthread")),
601 bn_ops => "SIXTY_FOUR_BIT",
603 perlasm_scheme => 'void',
604 shared_cflag => "-fpic",
605 shared_ldflag => add_before("-shared"),
606 multilib => "/hpux32",
608 "hpux64-ia64-gcc" => {
609 inherit_from => [ "hpux-common" ],
611 CFLAGS => picker(debug => "-O0 -g",
613 cflags => combine("-mlp64", threads("-pthread")),
614 ex_libs => add("-ldl", threads("-pthread")),
615 bn_ops => "SIXTY_FOUR_BIT_LONG",
617 perlasm_scheme => 'void',
618 shared_cflag => "-fpic",
619 shared_ldflag => add_before("-shared"),
620 multilib => "/hpux64",
623 #### HP MPE/iX http://jazz.external.hp.com/src/openssl/
625 inherit_from => [ "BASE_unix" ],
628 cppflags => "-D_POSIX_SOURCE -D_SOCKET_SOURCE",
629 includes => [ "/SYSLOG/PUB" ],
630 lib_cppflags => "-DBN_DIV2W",
632 lflags => add("-L/SYSLOG/PUB"),
633 ex_libs => add("-lsyslog -lsocket -lcurses"),
634 thread_scheme => "(unknown)",
635 bn_ops => "BN_LLONG",
638 #### DEC Alpha Tru64 targets. Tru64 is marketing name for OSF/1 version 4
639 #### and forward. In reality 'uname -s' still returns "OSF1". Originally
640 #### there were even osf1-* configs targeting prior versions provided,
641 #### but not anymore...
642 "tru64-alpha-gcc" => {
643 inherit_from => [ "BASE_unix" ],
646 cflags => add("-std=c9x", threads("-pthread")),
647 cppflags => "-D_XOPEN_SOURCE=500 -D_OSF_SOURCE",
648 ex_libs => add("-lrt", threads("-pthread")), # for mlock(2)
649 bn_ops => "SIXTY_FOUR_BIT_LONG",
651 perlasm_scheme => "void",
652 thread_scheme => "pthreads",
653 dso_scheme => "dlfcn",
654 shared_target => "alpha-osf1-shared",
655 shared_extension => ".so",
657 "tru64-alpha-cc" => {
658 inherit_from => [ "BASE_unix" ],
660 CFLAGS => "-tune host -fast",
661 cflags => add("-std1 -readonly_strings",
662 threads("-pthread")),
663 cppflags => "-D_XOPEN_SOURCE=500 -D_OSF_SOURCE",
664 ex_libs => add("-lrt", threads("-pthread")), # for mlock(2)
665 bn_ops => "SIXTY_FOUR_BIT_LONG",
667 perlasm_scheme => "void",
668 thread_scheme => "pthreads",
669 dso_scheme => "dlfcn",
670 shared_target => "alpha-osf1-shared",
671 shared_ldflag => "-msym",
672 shared_extension => ".so",
676 #### Variety of LINUX:-)
678 # *-generic* is endian-neutral target, but ./config is free to
679 # throw in -D[BL]_ENDIAN, whichever appropriate...
681 inherit_from => [ "BASE_unix" ],
684 CFLAGS => picker(default => "-Wall",
687 CXXFLAGS => picker(default => "-Wall",
690 cflags => threads("-pthread"),
691 cxxflags => combine("-std=c++11", threads("-pthread")),
692 lib_cppflags => "-DOPENSSL_USE_NODELETE",
693 ex_libs => add("-ldl", threads("-pthread")),
694 bn_ops => "BN_LLONG RC4_CHAR",
695 thread_scheme => "pthreads",
696 dso_scheme => "dlfcn",
697 shared_target => "linux-shared",
698 shared_cflag => "-fPIC",
699 shared_ldflag => sub { $disabled{pinshared} ? () : "-Wl,-znodelete" },
700 enable => [ "afalgeng" ],
702 "linux-generic32" => {
703 inherit_from => [ "linux-generic" ],
704 ex_libs => add(threads("-latomic")),
705 bn_ops => "BN_LLONG RC4_CHAR",
707 "linux-generic64" => {
708 inherit_from => [ "linux-generic" ],
709 bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
713 inherit_from => [ "linux-generic32" ],
715 perlasm_scheme => "linux32",
716 lib_cppflags => add("-DB_ENDIAN"),
719 inherit_from => [ "linux-generic64" ],
720 cflags => add("-m64"),
721 cxxflags => add("-m64"),
722 lib_cppflags => add("-DB_ENDIAN"),
724 perlasm_scheme => "linux64",
728 inherit_from => [ "linux-generic64" ],
729 cflags => add("-m64"),
730 cxxflags => add("-m64"),
731 lib_cppflags => add("-DL_ENDIAN"),
733 perlasm_scheme => "linux64le",
737 ################################################################
738 # Note that -march is not among compiler options in linux-armv4
739 # target description. Not specifying one is intentional to give
742 # a) rely on your compiler default by not specifying one;
743 # b) specify your target platform explicitly for optimal
744 # performance, e.g. -march=armv6 or -march=armv7-a;
745 # c) build "universal" binary that targets *range* of platforms
746 # by specifying minimum and maximum supported architecture;
748 # As for c) option. It actually makes no sense to specify
749 # maximum to be less than ARMv7, because it's the least
750 # requirement for run-time switch between platform-specific
751 # code paths. And without run-time switch performance would be
752 # equivalent to one for minimum. Secondly, there are some
753 # natural limitations that you'd have to accept and respect.
754 # Most notably you can *not* build "universal" binary for
755 # big-endian platform. This is because ARMv7 processor always
756 # picks instructions in little-endian order. Another similar
757 # limitation is that -mthumb can't "cross" -march=armv6t2
758 # boundary, because that's where it became Thumb-2. Well, this
759 # limitation is a bit artificial, because it's not really
760 # impossible, but it's deemed too tricky to support. And of
761 # course you have to be sure that your binutils are actually
762 # up to the task of handling maximum target platform. With all
763 # this in mind here is an example of how to configure
766 # ./Configure linux-armv4 -march=armv6 -D__ARM_MAX_ARCH__=8
768 inherit_from => [ "linux-generic32" ],
770 perlasm_scheme => "linux32",
773 inherit_from => [ "linux-generic64" ],
774 asm_arch => 'aarch64',
775 perlasm_scheme => "linux64",
777 "linux-arm64ilp32" => { # https://wiki.linaro.org/Platform/arm64-ilp32
778 inherit_from => [ "linux-generic32" ],
779 cflags => add("-mabi=ilp32"),
780 cxxflags => add("-mabi=ilp32"),
781 bn_ops => "SIXTY_FOUR_BIT RC4_CHAR",
782 asm_arch => 'aarch64',
783 perlasm_scheme => "linux64",
787 # Configure script adds minimally required -march for assembly
788 # support, if no -march was specified at command line.
789 inherit_from => [ "linux-generic32" ],
790 cflags => add("-mabi=32"),
791 cxxflags => add("-mabi=32"),
792 asm_arch => 'mips32',
793 perlasm_scheme => "o32",
795 # mips32 and mips64 below refer to contemporary MIPS Architecture
796 # specifications, MIPS32 and MIPS64, rather than to kernel bitness.
798 inherit_from => [ "linux-generic32" ],
799 cflags => add("-mabi=n32"),
800 cxxflags => add("-mabi=n32"),
801 bn_ops => "RC4_CHAR",
802 asm_arch => 'mips64',
803 perlasm_scheme => "n32",
806 "linux64-mips64" => {
807 inherit_from => [ "linux-generic64" ],
808 cflags => add("-mabi=64"),
809 cxxflags => add("-mabi=64"),
810 asm_arch => 'mips64',
811 perlasm_scheme => "64",
815 # riscv64 below refers to contemporary RISCV Architecture
817 "linux64-riscv64" => {
818 inherit_from => [ "linux-generic64"],
819 perlasm_scheme => "linux64",
822 #### IA-32 targets...
823 #### These two targets are a bit aged and are to be used on older Linux
824 #### machines where gcc doesn't understand -m32 and -m64
826 inherit_from => [ "linux-generic32" ],
827 CFLAGS => add(picker(release => "-fomit-frame-pointer")),
828 lib_cppflags => add("-DL_ENDIAN"),
829 bn_ops => "BN_LLONG",
831 perlasm_scheme => "elf",
834 inherit_from => [ "BASE_unix" ],
836 CFLAGS => add(picker(default => "-Wall",
838 release => "-O3 -fomit-frame-pointer")),
839 lib_cppflags => add("-DL_ENDIAN"),
840 bn_ops => "BN_LLONG",
841 thread_scheme => "(unknown)",
843 perlasm_scheme => "a.out",
846 #### X86 / X86_64 targets
848 inherit_from => [ "linux-generic32" ],
849 CFLAGS => add(picker(release => "-fomit-frame-pointer")),
850 cflags => add("-m32"),
851 cxxflags => add("-m32"),
852 lib_cppflags => add("-DL_ENDIAN"),
853 bn_ops => "BN_LLONG",
855 perlasm_scheme => "elf",
857 "linux-x86-clang" => {
858 inherit_from => [ "linux-x86" ],
863 inherit_from => [ "linux-generic64" ],
864 cflags => add("-m64"),
865 cxxflags => add("-m64"),
866 lib_cppflags => add("-DL_ENDIAN"),
867 bn_ops => "SIXTY_FOUR_BIT_LONG",
868 asm_arch => 'x86_64',
869 perlasm_scheme => "elf",
872 "linux-x86_64-clang" => {
873 inherit_from => [ "linux-x86_64" ],
878 inherit_from => [ "linux-generic32" ],
879 cflags => add("-mx32"),
880 cxxflags => add("-mx32"),
881 lib_cppflags => add("-DL_ENDIAN"),
882 bn_ops => "SIXTY_FOUR_BIT",
883 asm_arch => 'x86_64',
884 perlasm_scheme => "elf32",
889 inherit_from => [ "linux-generic64" ],
890 bn_ops => "SIXTY_FOUR_BIT_LONG",
892 perlasm_scheme => 'void',
896 inherit_from => [ "linux-generic64" ],
897 cflags => add("-m64"),
898 cxxflags => add("-m64"),
899 lib_cppflags => add("-DB_ENDIAN"),
901 perlasm_scheme => "64",
905 #### So called "highgprs" target for z/Architecture CPUs
906 # "Highgprs" is kernel feature first implemented in Linux
907 # 2.6.32, see /proc/cpuinfo. The idea is to preserve most
908 # significant bits of general purpose registers not only
909 # upon 32-bit process context switch, but even on
910 # asynchronous signal delivery to such process. This makes
911 # it possible to deploy 64-bit instructions even in legacy
912 # application context and achieve better [or should we say
913 # adequate] performance. The build is binary compatible with
914 # linux-generic32, and the idea is to be able to install the
915 # resulting libcrypto.so alongside generic one, e.g. as
916 # /lib/highgprs/libcrypto.so.x.y, for ldconfig and run-time
917 # linker to autodiscover. Unfortunately it doesn't work just
918 # yet, because of couple of bugs in glibc
919 # sysdeps/s390/dl-procinfo.c affecting ldconfig and ld.so.1...
921 inherit_from => [ "linux-generic32" ],
922 cflags => add("-m31 -Wa,-mzarch"),
923 cxxflags => add("-m31 -Wa,-mzarch"),
924 lib_cppflags => add("-DB_ENDIAN"),
926 perlasm_scheme => "31",
927 multilib => "/highgprs",
930 #### SPARC Linux setups
932 inherit_from => [ "linux-generic32" ],
933 cflags => add("-mcpu=v8"),
934 cxxflags => add("-mcpu=v8"),
935 lib_cppflags => add("-DB_ENDIAN -DBN_DIV2W"),
936 asm_arch => 'sparcv8',
937 perlasm_scheme => 'void',
940 # it's a real mess with -mcpu=ultrasparc option under Linux,
941 # but -Wa,-Av8plus should do the trick no matter what.
942 inherit_from => [ "linux-generic32" ],
943 cflags => add("-m32 -mcpu=ultrasparc -Wa,-Av8plus"),
944 cxxflags => add("-m32 -mcpu=ultrasparc -Wa,-Av8plus"),
945 lib_cppflags => add("-DB_ENDIAN -DBN_DIV2W"),
946 asm_arch => 'sparcv9',
947 perlasm_scheme => 'void',
949 "linux64-sparcv9" => {
950 # GCC 3.1 is a requirement
951 inherit_from => [ "linux-generic64" ],
952 cflags => add("-m64 -mcpu=ultrasparc"),
953 cxxflags => add("-m64 -mcpu=ultrasparc"),
954 lib_cppflags => add("-DB_ENDIAN"),
955 ex_libs => add(threads("-latomic")),
956 bn_ops => "BN_LLONG RC4_CHAR",
957 asm_arch => 'sparcv9',
958 perlasm_scheme => 'void',
962 "linux-alpha-gcc" => {
963 inherit_from => [ "linux-generic64" ],
964 lib_cppflags => add("-DL_ENDIAN"),
965 bn_ops => "SIXTY_FOUR_BIT_LONG",
967 perlasm_scheme => "void",
969 "linux-c64xplus" => {
970 inherit_from => [ "BASE_unix" ],
971 # TI_CGT_C6000_7.3.x is a requirement
973 CFLAGS => "-o2 -ox -ms",
974 cflags => "--linux -ea=.s -eo=.o -mv6400+ -pden",
975 cxxflags => "--linux -ea=.s -eo=.o -mv6400+ -pden",
976 cppflags => combine("-DOPENSSL_SMALL_FOOTPRINT",
977 threads("-D_REENTRANT")),
978 bn_ops => "BN_LLONG",
979 thread_scheme => "pthreads",
980 asm_arch => 'c64xplus',
981 perlasm_scheme => "void",
982 dso_scheme => "dlfcn",
983 shared_target => "linux-shared",
984 shared_cflag => "--pic",
985 shared_ldflag => add("-z --sysv --shared"),
991 # As for thread cflag. Idea is to maintain "collective" set of
992 # flags, which would cover all BSD flavors. -pthread applies
993 # to them all, but is treated differently. OpenBSD expands is
994 # as -D_POSIX_THREAD -lc_r, which is sufficient. FreeBSD 4.x
995 # expands it as -lc_r, which has to be accompanied by explicit
996 # -D_THREAD_SAFE and sometimes -D_REENTRANT. FreeBSD 5.x
997 # expands it as -lc_r, which seems to be sufficient?
998 inherit_from => [ "BASE_unix" ],
1000 CFLAGS => picker(default => "-Wall",
1003 cflags => threads("-pthread"),
1004 cppflags => threads("-D_THREAD_SAFE -D_REENTRANT"),
1005 ex_libs => add(threads("-pthread")),
1006 enable => add("devcryptoeng"),
1007 bn_ops => "BN_LLONG",
1008 thread_scheme => "pthreads",
1009 dso_scheme => "dlfcn",
1010 shared_target => "bsd-gcc-shared",
1011 shared_cflag => "-fPIC",
1013 "BSD-generic64" => {
1014 inherit_from => [ "BSD-generic32" ],
1015 bn_ops => "SIXTY_FOUR_BIT_LONG",
1019 inherit_from => [ "BSD-generic32" ],
1020 CFLAGS => add(picker(release => "-fomit-frame-pointer")),
1021 lib_cppflags => add("-DL_ENDIAN"),
1022 bn_ops => "BN_LLONG",
1024 perlasm_scheme => "a.out",
1027 inherit_from => [ "BSD-x86" ],
1028 perlasm_scheme => "elf",
1032 inherit_from => [ "BSD-generic32" ],
1033 cflags => add("-mcpu=v8"),
1034 lib_cppflags => add("-DB_ENDIAN"),
1035 asm_arch => 'sparcv8',
1036 perlasm_scheme => 'void',
1039 # -DMD32_REG_T=int doesn't actually belong in sparc64 target, it
1040 # simply *happens* to work around a compiler bug in gcc 3.3.3,
1041 # triggered by RIPEMD160 code.
1042 inherit_from => [ "BSD-generic64" ],
1043 lib_cppflags => add("-DB_ENDIAN -DMD32_REG_T=int"),
1044 bn_ops => "BN_LLONG",
1045 asm_arch => 'sparcv9',
1046 perlasm_scheme => 'void',
1050 inherit_from => [ "BSD-generic64" ],
1051 lib_cppflags => add("-DL_ENDIAN"),
1052 bn_ops => "SIXTY_FOUR_BIT_LONG",
1054 perlasm_scheme => 'void',
1058 inherit_from => [ "BSD-generic64" ],
1059 lib_cppflags => add("-DL_ENDIAN"),
1060 bn_ops => "SIXTY_FOUR_BIT_LONG",
1061 asm_arch => 'x86_64',
1062 perlasm_scheme => "elf",
1066 inherit_from => [ "BASE_unix" ],
1068 CFLAGS => "-fomit-frame-pointer -O3 -Wall",
1069 lib_cppflags => "-DPERL5 -DL_ENDIAN",
1070 ex_libs => add("-ldl"),
1071 bn_ops => "BN_LLONG",
1073 perlasm_scheme => "elf",
1074 thread_scheme => "(unknown)",
1075 dso_scheme => "dlfcn",
1076 shared_target => "bsd-gcc-shared",
1077 shared_cflag => "-fPIC",
1080 #### SCO/Caldera targets.
1082 # Originally we had like unixware-*, unixware-*-pentium, unixware-*-p6, etc.
1083 # Now we only have blended unixware-* as it's the only one used by ./config.
1084 # If you want to optimize for particular microarchitecture, bypass ./config
1085 # and './Configure unixware-7 -Kpentium_pro' or whatever appropriate.
1086 # Note that not all targets include assembler support. Mostly because of
1087 # lack of motivation to support out-of-date platforms with out-of-date
1088 # compiler drivers and assemblers.
1090 # UnixWare 2.0x fails destest with -O.
1092 inherit_from => [ "BASE_unix" ],
1094 cflags => threads("-Kthread"),
1095 lib_cppflags => "-DFILIO_H -DNO_STRINGS_H",
1096 ex_libs => add("-lsocket -lnsl -lresolv -lx"),
1097 thread_scheme => "uithreads",
1100 inherit_from => [ "BASE_unix" ],
1103 cflags => threads("-Kthread"),
1104 lib_cppflags => "-DFILIO_H",
1105 ex_libs => add("-lsocket -lnsl -lresolv -lx"),
1106 thread_scheme => "uithreads",
1109 inherit_from => [ "BASE_unix" ],
1112 cflags => combine("-Kalloca", threads("-Kthread")),
1113 lib_cppflags => "-DFILIO_H",
1114 ex_libs => add("-lsocket -lnsl"),
1115 thread_scheme => "uithreads",
1116 bn_ops => "BN_LLONG",
1118 perlasm_scheme => "elf-1",
1119 dso_scheme => "dlfcn",
1120 shared_target => "svr5-shared",
1121 shared_cflag => "-Kpic",
1123 "unixware-7-gcc" => {
1124 inherit_from => [ "BASE_unix" ],
1126 CFLAGS => "-O3 -fomit-frame-pointer -Wall",
1127 cppflags => add(threads("-D_REENTRANT")),
1128 lib_cppflags => add("-DL_ENDIAN -DFILIO_H"),
1129 ex_libs => add("-lsocket -lnsl"),
1130 bn_ops => "BN_LLONG",
1131 thread_scheme => "pthreads",
1133 perlasm_scheme => "elf-1",
1134 dso_scheme => "dlfcn",
1135 shared_target => "gnu-shared",
1136 shared_cflag => "-fPIC",
1138 # SCO 5 - Ben Laurie says the -O breaks the SCO cc.
1140 inherit_from => [ "BASE_unix" ],
1143 ex_libs => add("-lsocket -lnsl"),
1144 thread_scheme => "(unknown)",
1146 perlasm_scheme => "elf-1",
1147 dso_scheme => "dlfcn",
1148 shared_target => "svr3-shared",
1149 shared_cflag => "-Kpic",
1152 inherit_from => [ "BASE_unix" ],
1154 cflags => "-O3 -fomit-frame-pointer",
1155 ex_libs => add("-lsocket -lnsl"),
1156 bn_ops => "BN_LLONG",
1157 thread_scheme => "(unknown)",
1159 perlasm_scheme => "elf-1",
1160 dso_scheme => "dlfcn",
1161 shared_target => "svr3-shared",
1162 shared_cflag => "-fPIC",
1166 # Below targets assume AIX >=5. Caveat lector. If you are accustomed
1167 # to control compilation "bitness" by setting $OBJECT_MODE environment
1168 # variable, then you should know that in OpenSSL case it's considered
1169 # only in ./config. Once configured, build procedure remains "deaf" to
1170 # current value of $OBJECT_MODE.
1172 inherit_from => [ "BASE_unix" ],
1175 lib_cppflags => "-DB_ENDIAN",
1176 lflags => "-Wl,-bsvr4",
1177 thread_scheme => "pthreads",
1178 dso_scheme => "dlfcn",
1179 shared_target => "aix",
1180 module_ldflags => "-Wl,-G,-bsymbolic,-bnoentry",
1181 shared_ldflag => "-Wl,-G,-bsymbolic,-bnoentry",
1182 shared_defflag => "-Wl,-bE:",
1183 shared_fipsflag => "-Wl,-binitfini:init:cleanup",
1184 perl_platform => 'AIX',
1187 inherit_from => [ "aix-common" ],
1189 CFLAGS => picker(debug => "-O0 -g",
1191 cflags => add(threads("-pthread")),
1192 ex_libs => add(threads("-pthread")),
1193 bn_ops => "BN_LLONG RC4_CHAR",
1194 asm_arch => 'ppc32',
1195 perlasm_scheme => "aix32",
1196 shared_ldflag => add_before("-shared -static-libgcc"),
1198 RANLIB => add("-X32"),
1201 inherit_from => [ "aix-common" ],
1203 CFLAGS => picker(debug => "-O0 -g",
1205 cflags => combine("-maix64", threads("-pthread")),
1206 ex_libs => add(threads("-pthread")),
1207 bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
1208 asm_arch => 'ppc64',
1209 perlasm_scheme => "aix64",
1210 shared_ldflag => add_before("-shared -static-libgcc"),
1211 shared_extension => "64.so.\$(SHLIB_VERSION_NUMBER)",
1213 RANLIB => add("-X64"),
1216 inherit_from => [ "aix-common" ],
1218 CFLAGS => picker(debug => "-O0 -g",
1220 cflags => combine("-q32 -qmaxmem=16384 -qro -qroconst",
1221 threads("-qthreaded")),
1222 cppflags => threads("-D_THREAD_SAFE"),
1223 ex_libs => add(threads("-lpthreads")),
1224 bn_ops => "BN_LLONG RC4_CHAR",
1225 asm_arch => 'ppc32',
1226 perlasm_scheme => "aix32",
1227 shared_cflag => "-qpic",
1229 RANLIB => add("-X32"),
1232 inherit_from => [ "aix-common" ],
1234 CFLAGS => picker(debug => "-O0 -g",
1236 cflags => combine("-q64 -qmaxmem=16384 -qro -qroconst",
1237 threads("-qthreaded")),
1238 cppflags => threads("-D_THREAD_SAFE"),
1239 ex_libs => add(threads("-lpthreads")),
1240 bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
1241 asm_arch => 'ppc64',
1242 perlasm_scheme => "aix64",
1243 dso_scheme => "dlfcn",
1244 shared_cflag => "-qpic",
1245 shared_extension => "64.so.\$(SHLIB_VERSION_NUMBER)",
1247 RANLIB => add("-X64"),
1250 # SIEMENS BS2000/OSD: an EBCDIC-based mainframe
1252 inherit_from => [ "BASE_unix" ],
1255 cflags => "-XLLML -XLLMK -XL",
1256 cppflags => "-DCHARSET_EBCDIC",
1257 lib_cppflags => "-DB_ENDIAN",
1258 ex_libs => add("-lsocket -lnsl"),
1259 bn_ops => "THIRTY_TWO_BIT RC4_CHAR",
1260 thread_scheme => "(unknown)",
1263 #### Visual C targets
1265 # Win64 targets, WIN64I denotes IA-64/Itanium and WIN64A - AMD64
1267 # Note about /wd4090, disable warning C4090. This warning returns false
1268 # positives in some situations. Disabling it altogether masks both
1269 # legitimate and false cases, but as we compile on multiple platforms,
1270 # we rely on other compilers to catch legitimate cases.
1272 # Also note that we force threads no matter what. Configuring "no-threads"
1275 # UNICODE is defined in VC-common and applies to all targets. It used to
1276 # be an opt-in option for VC-WIN32, but not anymore. The original reason
1277 # was because ANSI API was *native* system interface for no longer
1278 # supported Windows 9x. Keep in mind that UNICODE only affects how
1279 # OpenSSL libraries interact with underlying OS, it doesn't affect API
1280 # that OpenSSL presents to application.
1283 inherit_from => [ "BASE_Windows" ],
1286 CPP => '"$(CC)" /EP /C',
1287 CFLAGS => "/W3 /wd4090 /nologo",
1290 LDFLAGS => "/nologo /debug",
1291 ldoutflag => "/out:",
1292 ldpostoutflag => "",
1293 ld_resp_delim => "\n",
1294 bin_lflags => "setargv.obj",
1295 makedepcmd => '"$(CC)" /Zs /showIncludes',
1296 makedep_scheme => 'VC',
1298 ARFLAGS => "/nologo",
1299 aroutflag => "/out:",
1300 ar_resp_delim => "\n",
1303 defines => add("OPENSSL_SYS_WIN32", "WIN32_LEAN_AND_MEAN",
1304 "UNICODE", "_UNICODE",
1305 "_CRT_SECURE_NO_DEPRECATE",
1306 "_WINSOCK_DEPRECATED_NO_WARNINGS"),
1307 lib_cflags => add("/Zi /Fdossl_static.pdb"),
1308 lib_defines => add("L_ENDIAN"),
1309 dso_cflags => "/Zi /Fddso.pdb",
1310 bin_cflags => "/Zi /Fdapp.pdb",
1311 # def_flag made to empty string so a .def file gets generated
1312 shared_defflag => '',
1313 shared_ldflag => "/dll",
1314 shared_target => "win-shared", # meaningless except it gives Configure a hint
1315 lddefflag => "/def:",
1317 ld_implib_flag => "/implib:",
1318 thread_scheme => "winthreads",
1319 dso_scheme => "win32",
1320 perl_platform => 'Windows::MSVC',
1321 # additional parameter to build_scheme denotes install-path "flavour"
1322 build_scheme => add("VC-common", { separator => undef }),
1324 "VC-noCE-common" => {
1325 inherit_from => [ "VC-common" ],
1327 CFLAGS => add(picker(debug => '/Od',
1329 cflags => add(picker(default => '/Gs0 /GF /Gy',
1332 ($disabled{shared} ? "" : "/MDd");
1336 ($disabled{shared} ? "" : "/MD");
1338 defines => add(picker(default => [], # works as type cast
1339 debug => [ "DEBUG", "_DEBUG" ])),
1340 lib_cflags => add(sub { $disabled{shared} ? "/MT /Zl" : () }),
1341 # Following might/should appears controversial, i.e. defining
1342 # /MDd without evaluating $disabled{shared}. It works in
1343 # non-shared build because static library is compiled with /Zl
1344 # and bares no reference to specific RTL. And it works in
1345 # shared build because multiple /MDd options are not prohibited.
1346 # But why /MDd in static build? Well, basically this is just a
1347 # reference point, which allows to catch eventual errors that
1348 # would prevent those who want to wrap OpenSSL into own .DLL.
1349 # Why not /MD in release build then? Well, some are likely to
1350 # prefer [non-debug] openssl.exe to be free from Micorosoft RTL
1352 bin_cflags => add(picker(debug => "/MDd",
1353 release => sub { $disabled{shared} ? "/MT" : () },
1355 bin_lflags => add("/subsystem:console /opt:ref"),
1356 ex_libs => add(sub {
1358 push @ex_libs, 'ws2_32.lib' unless $disabled{sock};
1359 push @ex_libs, 'gdi32.lib advapi32.lib crypt32.lib user32.lib';
1360 return join(" ", @ex_libs);
1363 "VC-WIN64-common" => {
1364 inherit_from => [ "VC-noCE-common" ],
1366 ex_libs => add(sub {
1368 push @ex_libs, 'bufferoverflowu.lib' if (`cl 2>&1` =~ /14\.00\.4[0-9]{4}\./);
1369 return join(" ", @_, @ex_libs);
1371 bn_ops => add("SIXTY_FOUR_BIT"),
1374 inherit_from => [ "VC-WIN64-common" ],
1376 ASFLAGS => "-d debug",
1379 uplink_arch => 'ia64',
1381 perlasm_scheme => "ias",
1382 multilib => "-ia64",
1385 inherit_from => [ "VC-WIN64-common" ],
1386 AS => sub { vc_win64a_info()->{AS} },
1387 ASFLAGS => sub { vc_win64a_info()->{ASFLAGS} },
1388 asoutflag => sub { vc_win64a_info()->{asoutflag} },
1389 asflags => sub { vc_win64a_info()->{asflags} },
1391 uplink_arch => 'x86_64',
1392 asm_arch => 'x86_64',
1393 perlasm_scheme => "auto",
1397 inherit_from => [ "VC-noCE-common" ],
1398 AS => sub { vc_win32_info()->{AS} },
1399 ASFLAGS => sub { vc_win32_info()->{ASFLAGS} },
1400 asoutflag => sub { vc_win32_info()->{asoutflag} },
1401 asflags => sub { vc_win32_info()->{asflags} },
1403 bn_ops => add("BN_LLONG"),
1404 uplink_arch => 'common',
1406 perlasm_scheme => sub { vc_win32_info()->{perlasm_scheme} },
1407 # "WOW" stands for "Windows on Windows", and "VC-WOW" engages
1408 # some installation path heuristics in windows-makefile.tmpl...
1409 build_scheme => add("VC-WOW", { separator => undef }),
1412 inherit_from => [ "VC-common" ],
1413 CFLAGS => add(picker(debug => "/Od",
1414 release => "/O1i")),
1415 CPPDEFINES => picker(debug => [ "DEBUG", "_DEBUG" ]),
1416 LDFLAGS => add("/nologo /opt:ref"),
1419 sub { vc_wince_info()->{cflags}; },
1420 sub { `cl 2>&1` =~ /Version ([0-9]+)\./ && $1>=14
1421 ? ($disabled{shared} ? " /MT" : " /MD")
1423 cppflags => sub { vc_wince_info()->{cppflags}; },
1424 lib_defines => add("NO_CHMOD", "OPENSSL_SMALL_FOOTPRINT"),
1425 lib_cppflags => sub { vc_wince_info()->{cppflags}; },
1427 add(combine(sub { defined(env('WCECOMPAT'))
1428 ? '$(WCECOMPAT)/include' : (); },
1429 sub { defined(env('PORTSDK_LIBPATH'))
1430 ? '$(PORTSDK_LIBPATH)/../../include'
1432 lflags => add(combine(sub { vc_wince_info()->{lflags}; },
1433 sub { defined(env('PORTSDK_LIBPATH'))
1434 ? "/entry:mainCRTstartup" : (); })),
1436 bn_ops => add("BN_LLONG"),
1437 ex_libs => add(sub {
1439 push @ex_libs, 'ws2.lib' unless $disabled{sock};
1440 push @ex_libs, 'crypt32.lib';
1441 if (defined(env('WCECOMPAT'))) {
1442 my $x = '$(WCECOMPAT)/lib';
1443 if (-f "$x/env('TARGETCPU')/wcecompatex.lib") {
1444 $x .= '/$(TARGETCPU)/wcecompatex.lib';
1446 $x .= '/wcecompatex.lib';
1450 push @ex_libs, '$(PORTSDK_LIBPATH)/portlib.lib'
1451 if (defined(env('PORTSDK_LIBPATH')));
1452 push @ex_libs, '/nodefaultlib coredll.lib corelibc.lib'
1453 if (env('TARGETCPU') =~ /^X86|^ARMV4[IT]/);
1454 return join(" ", @ex_libs);
1460 inherit_from => [ 'BASE_unix' ],
1463 CFLAGS => picker(default => "-Wall",
1466 cppflags => combine("-DUNICODE -D_UNICODE -DWIN32_LEAN_AND_MEAN",
1468 lib_cppflags => "-DL_ENDIAN",
1469 ex_libs => add("-lws2_32 -lgdi32 -lcrypt32"),
1470 thread_scheme => "winthreads",
1471 dso_scheme => "win32",
1472 shared_target => "mingw-shared",
1473 shared_cppflags => add("_WINDLL"),
1474 shared_ldflag => "-static-libgcc",
1476 perl_platform => 'mingw',
1479 inherit_from => [ "mingw-common" ],
1480 CFLAGS => add(picker(release => "-fomit-frame-pointer")),
1482 sys_id => "MINGW32",
1483 bn_ops => add("BN_LLONG"),
1485 uplink_arch => 'x86',
1486 perlasm_scheme => "coff",
1487 shared_rcflag => "--target=pe-i386",
1491 # As for uplink_arch. Applink makes it possible to use
1492 # .dll compiled with one compiler with application compiled with
1493 # another compiler. It's possible to engage Applink support in
1494 # mingw64 build, but it's not done, because until mingw64
1495 # supports structured exception handling, one can't seriously
1496 # consider its binaries for using with non-mingw64 run-time
1497 # environment. And as mingw64 is always consistent with itself,
1498 # Applink is never engaged and can as well be omitted.
1499 inherit_from => [ "mingw-common" ],
1501 sys_id => "MINGW64",
1502 bn_ops => add("SIXTY_FOUR_BIT"),
1503 asm_arch => 'x86_64',
1504 uplink_arch => undef,
1505 perlasm_scheme => "mingw64",
1506 shared_rcflag => "--target=pe-x86-64",
1512 inherit_from => [ "BASE_unix" ],
1515 lib_cppflags => "-DL_ENDIAN",
1519 inherit_from => [ "UEFI" ],
1521 perlasm_scheme => "win32n",
1524 inherit_from => [ "UEFI" ],
1525 asm_arch => 'x86_64',
1526 perlasm_scheme => "nasm",
1531 inherit_from => [ "BASE_unix" ],
1533 CFLAGS => "-O -Wall",
1534 lib_cppflags => "-DTERMIOS -DL_ENDIAN",
1536 bn_ops => "BN_LLONG",
1537 dso_scheme => "win32",
1541 "Cygwin-common" => {
1542 inherit_from => [ "BASE_unix" ],
1546 CFLAGS => picker(default => "-Wall",
1549 lib_cppflags => "-DTERMIOS -DL_ENDIAN",
1551 thread_scheme => "pthread",
1552 dso_scheme => "dlfcn",
1553 shared_target => "cygwin-shared",
1554 shared_cppflags => "-D_WINDLL",
1556 perl_platform => 'Cygwin',
1559 inherit_from => [ "Cygwin-common" ],
1560 CFLAGS => add(picker(release => "-O3 -fomit-frame-pointer")),
1561 bn_ops => "BN_LLONG",
1563 perlasm_scheme => "coff",
1565 "Cygwin-x86_64" => {
1566 inherit_from => [ "Cygwin-common" ],
1568 bn_ops => "SIXTY_FOUR_BIT_LONG",
1569 asm_arch => 'x86_64',
1570 perlasm_scheme => "mingw64",
1572 # Backward compatibility for those using this target
1574 inherit_from => [ "Cygwin-x86" ]
1576 # In case someone constructs the Cygwin target name themself
1578 inherit_from => [ "Cygwin-x86" ]
1581 inherit_from => [ "Cygwin-x86" ]
1584 inherit_from => [ "Cygwin-x86" ]
1587 inherit_from => [ "Cygwin-x86" ]
1590 ##### MacOS X (a.k.a. Darwin) setup
1591 "darwin-common" => {
1592 inherit_from => [ "BASE_unix" ],
1595 CFLAGS => picker(debug => "-g -O0",
1597 cppflags => threads("-D_REENTRANT"),
1598 lflags => add("-Wl,-search_paths_first"),
1600 bn_ops => "BN_LLONG RC4_CHAR",
1601 thread_scheme => "pthreads",
1602 perlasm_scheme => "osx32",
1603 dso_scheme => "dlfcn",
1604 ranlib => "ranlib -c",
1605 shared_target => "darwin-shared",
1606 shared_cflag => "-fPIC",
1607 shared_extension => ".\$(SHLIB_VERSION_NUMBER).dylib",
1609 # Option "freeze" such as -std=gnu9x can't negatively interfere
1610 # with future defaults for below two targets, because MacOS X
1611 # for PPC has no future, it was discontinued by vendor in 2009.
1612 "darwin-ppc-cc" => { inherit_from => [ "darwin-ppc" ] }, # Historic alias
1614 inherit_from => [ "darwin-common" ],
1615 cflags => add("-arch ppc -std=gnu9x -Wa,-force_cpusubtype_ALL"),
1616 lib_cppflags => add("-DB_ENDIAN"),
1617 shared_cflag => add("-fno-common"),
1618 asm_arch => 'ppc32',
1619 perlasm_scheme => "osx32",
1621 "darwin64-ppc-cc" => { inherit_from => [ "darwin64-ppc" ] }, # Historic alias
1623 inherit_from => [ "darwin-common" ],
1624 cflags => add("-arch ppc64 -std=gnu9x"),
1625 lib_cppflags => add("-DB_ENDIAN"),
1626 bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR",
1627 asm_arch => 'ppc64',
1628 perlasm_scheme => "osx64",
1630 "darwin-i386-cc" => { inherit_from => [ "darwin-i386" ] }, # Historic alias
1632 inherit_from => [ "darwin-common" ],
1633 CFLAGS => add(picker(release => "-fomit-frame-pointer")),
1634 cflags => add("-arch i386"),
1635 lib_cppflags => add("-DL_ENDIAN"),
1636 bn_ops => "BN_LLONG RC4_INT",
1638 perlasm_scheme => "macosx",
1640 "darwin64-x86_64-cc" => { inherit_from => [ "darwin64-x86_64" ] }, # Historic alias
1641 "darwin64-x86_64" => {
1642 inherit_from => [ "darwin-common" ],
1643 CFLAGS => add("-Wall"),
1644 cflags => add("-arch x86_64"),
1645 lib_cppflags => add("-DL_ENDIAN"),
1646 bn_ops => "SIXTY_FOUR_BIT_LONG",
1647 asm_arch => 'x86_64',
1648 perlasm_scheme => "macosx",
1650 "darwin64-arm64-cc" => { inherit_from => [ "darwin64-arm64" ] }, # "Historic" alias
1651 "darwin64-arm64" => {
1652 inherit_from => [ "darwin-common" ],
1653 CFLAGS => add("-Wall"),
1654 cflags => add("-arch arm64"),
1655 lib_cppflags => add("-DL_ENDIAN"),
1656 bn_ops => "SIXTY_FOUR_BIT_LONG",
1657 asm_arch => 'aarch64',
1658 perlasm_scheme => "ios64",
1663 inherit_from => [ "BASE_unix" ],
1665 CFLAGS => "-O3 -fomit-frame-pointer -Wall",
1666 cflags => threads("-pthread"),
1667 lib_cppflags => "-DL_ENDIAN",
1668 ex_libs => add("-ldl", threads("-pthread")),
1669 bn_ops => "BN_LLONG",
1671 perlasm_scheme => 'elf',
1672 thread_scheme => "pthreads",
1673 dso_scheme => "dlfcn",
1674 shared_target => "linux-shared",
1675 shared_cflag => "-fPIC",
1678 ##### VxWorks for various targets
1679 "vxworks-ppc60x" => {
1680 inherit_from => [ "BASE_unix" ],
1682 CFLAGS => "-O2 -Wall -fstrength-reduce",
1683 cflags => "-mrtp -mhard-float -mstrict-align -fno-implicit-fp -fno-builtin -fno-strict-aliasing",
1684 cppflags => combine("-D_REENTRANT -DPPC32_fp60x -DCPU=PPC32",
1685 "_DTOOL_FAMILY=gnu -DTOOL=gnu",
1686 "-I\$(WIND_BASE)/target/usr/h",
1687 "-I\$(WIND_BASE)/target/usr/h/wrn/coreip"),
1688 sys_id => "VXWORKS",
1689 lflags => add("-L \$(WIND_BASE)/target/usr/lib/ppc/PPC32/common"),
1690 ex_libs => add("-Wl,--defsym,__wrs_rtp_base=0xe0000000"),
1692 "vxworks-ppcgen" => {
1693 inherit_from => [ "BASE_unix" ],
1695 CFLAGS => "-O1 -Wall",
1696 cflags => "-mrtp -msoft-float -mstrict-align -fno-builtin -fno-strict-aliasing",
1697 cppflags => combine("-D_REENTRANT -DPPC32 -DCPU=PPC32",
1698 "-DTOOL_FAMILY=gnu -DTOOL=gnu",
1699 "-I\$(WIND_BASE)/target/usr/h",
1700 "-I\$(WIND_BASE)/target/usr/h/wrn/coreip"),
1701 sys_id => "VXWORKS",
1702 lflags => add("-L \$(WIND_BASE)/target/usr/lib/ppc/PPC32/sfcommon"),
1703 ex_libs => add("-Wl,--defsym,__wrs_rtp_base=0xe0000000"),
1705 "vxworks-ppc405" => {
1706 inherit_from => [ "BASE_unix" ],
1709 cflags => "-msoft-float -mlongcall",
1710 cppflags => combine("-D_REENTRANT -DPPC32 -DCPU=PPC405",
1711 "-DTOOL_FAMILY=gnu -DTOOL=gnu",
1712 "-I\$(WIND_BASE)/target/h"),
1713 sys_id => "VXWORKS",
1714 lflags => add("-r"),
1716 "vxworks-ppc750" => {
1717 inherit_from => [ "BASE_unix" ],
1719 CFLAGS => "-ansi -fvolatile -Wall \$(DEBUG_FLAG)",
1720 cflags => "-nostdinc -fno-builtin -fno-for-scope -fsigned-char -msoft-float -mlongcall",
1721 cppflags => combine("-DPPC750 -D_REENTRANT -DCPU=PPC604",
1722 "-I\$(WIND_BASE)/target/h"),
1723 sys_id => "VXWORKS",
1724 lflags => add("-r"),
1726 "vxworks-ppc750-debug" => {
1727 inherit_from => [ "BASE_unix" ],
1729 CFLAGS => "-ansi -fvolatile -Wall -g",
1730 cflags => "-nostdinc -fno-builtin -fno-for-scope -fsigned-char -msoft-float -mlongcall",
1731 cppflags => combine("-DPPC750 -D_REENTRANT -DCPU=PPC604",
1732 "-DPEDANTIC -DDEBUG",
1733 "-I\$(WIND_BASE)/target/h"),
1734 sys_id => "VXWORKS",
1735 lflags => add("-r"),
1737 "vxworks-ppc860" => {
1738 inherit_from => [ "BASE_unix" ],
1740 cflags => "-nostdinc -msoft-float",
1741 cppflags => combine("-DCPU=PPC860 -DNO_STRINGS_H",
1742 "-I\$(WIND_BASE)/target/h"),
1743 sys_id => "VXWORKS",
1744 lflags => add("-r"),
1746 "vxworks-simlinux" => {
1747 inherit_from => [ "BASE_unix" ],
1749 cflags => "-B\$(WIND_BASE)/host/\$(WIND_HOST_TYPE)/lib/gcc-lib/ -fno-builtin -fno-defer-pop",
1750 cppflags => combine("-D_VSB_CONFIG_FILE=\"\$(WIND_BASE)/target/lib/h/config/vsbConfig.h\"",
1751 "-DL_ENDIAN -DCPU=SIMLINUX -DNO_STRINGS_H",
1752 "-DTOOL_FAMILY=gnu -DTOOL=gnu",
1753 "-DOPENSSL_NO_HW_PADLOCK",
1754 "-I\$(WIND_BASE)/target/h",
1755 "-I\$(WIND_BASE)/target/h/wrn/coreip"),
1756 sys_id => "VXWORKS",
1757 lflags => add("-r"),
1758 ranlib => "ranlibpentium",
1761 inherit_from => [ "BASE_unix" ],
1763 CFLAGS => "-O -G 0",
1764 cflags => "-mrtp -mips2 -B\$(WIND_BASE)/host/\$(WIND_HOST_TYPE)/lib/gcc-lib/ -msoft-float -mno-branch-likely -fno-builtin -fno-defer-pop",
1765 cppflags => combine("-D_VSB_CONFIG_FILE=\"\$(WIND_BASE)/target/lib/h/config/vsbConfig.h\"",
1766 "-DCPU=MIPS32 -DNO_STRINGS_H",
1767 "-DTOOL_FAMILY=gnu -DTOOL=gnu",
1768 "-DOPENSSL_NO_HW_PADLOCK",
1769 threads("-D_REENTRANT"),
1770 "-I\$(WIND_BASE)/target/h",
1771 "-I\$(WIND_BASE)/target/h/wrn/coreip"),
1772 sys_id => "VXWORKS",
1773 lflags => add("-L \$(WIND_BASE)/target/usr/lib/mips/MIPSI32/sfcommon"),
1774 ex_libs => add("-Wl,--defsym,__wrs_rtp_base=0xe0000000"),
1775 thread_scheme => "pthreads",
1776 asm_arch => 'mips32',
1777 perlasm_scheme => "o32",
1778 ranlib => "ranlibmips",
1783 inherit_from => [ "BASE_unix" ],
1784 CC => sub { env('CC') },
1785 cppflags => threads("-D_REENTRANT"),
1786 ex_libs => add("\$(LDLIBS)"),
1787 bn_ops => "BN_LLONG",
1788 thread_scheme => "pthreads",
1789 dso_scheme => sub { env('LIBSSL_dlfcn') },
1790 shared_target => "linux-shared",
1791 shared_cflag => "-fPIC",
1792 ranlib => sub { env('RANLIB') },
1794 "uClinux-dist64" => {
1795 inherit_from => [ "BASE_unix" ],
1796 CC => sub { env('CC') },
1797 cppflags => threads("-D_REENTRANT"),
1798 ex_libs => add("\$(LDLIBS)"),
1799 bn_ops => "SIXTY_FOUR_BIT_LONG",
1800 thread_scheme => "pthreads",
1801 dso_scheme => sub { env('LIBSSL_dlfcn') },
1802 shared_target => "linux-shared",
1803 shared_cflag => "-fPIC",
1804 ranlib => sub { env('RANLIB') },
1808 # Most things happen in vms-generic.
1809 # Note that vms_info extracts the pointer size from the end of
1810 # the target name, and will assume that anything matching /-p\d+$/
1811 # indicates the pointer size setting for the desired target.
1813 inherit_from => [ "BASE_VMS" ],
1816 CPP => '$(CC)/PREPROCESS_ONLY=SYS$OUTPUT:',
1818 combine(picker(default => "/STANDARD=(ISOC94,RELAXED)/NOLIST/PREFIX=ALL",
1819 debug => "/NOOPTIMIZE/DEBUG",
1820 release => "/OPTIMIZE/NODEBUG"),
1821 sub { my @warnings =
1822 @{vms_info()->{disable_warns}};
1824 ? "/WARNINGS=DISABLE=(".join(",",@warnings).")" : (); }),
1825 cflag_incfirst => '/FIRST_INCLUDE=',
1827 add("OPENSSL_USE_NODELETE",
1829 return vms_info()->{def_zlib}
1830 ? "LIBZ=\"\"\"".vms_info()->{def_zlib}."\"\"\"" : ();
1832 lflags => picker(default => "/MAP='F\$PARSE(\".MAP\",\"\$\@\")'",
1833 debug => "/DEBUG/TRACEBACK",
1834 release => "/NODEBUG/NOTRACEBACK"),
1835 # Because of dso_cflags below, we can't set the generic |cflags| here,
1836 # as it can't be overridden, so we set separate C flags for libraries
1837 # and binaries instead.
1838 bin_cflags => add("/NAMES=(AS_IS,SHORTENED)/EXTERN_MODEL=STRICT_REFDEF"),
1839 lib_cflags => add("/NAMES=(AS_IS,SHORTENED)/EXTERN_MODEL=STRICT_REFDEF"),
1840 # Strictly speaking, DSOs should not need to have name shortening,
1841 # as all their exported symbols should be short enough to fit the
1842 # linker's 31 character per symbol name limit. However, providers
1843 # may be composed of more than one object file, and internal symbols
1844 # may and do surpass the 31 character limit.
1845 dso_cflags => add("/NAMES=(SHORTENED)"),
1846 ex_libs => add(sub { return vms_info()->{zlib} || (); }),
1847 shared_target => "vms-shared",
1848 # def_flag made to empty string so a .opt file gets generated
1849 shared_defflag => '',
1850 dso_scheme => "vms",
1851 thread_scheme => "pthreads",
1853 makedep_scheme => 'VMS C',
1854 AS => sub { vms_info()->{AS} },
1855 ASFLAGS => sub { vms_info()->{ASFLAGS} },
1856 asoutflag => sub { vms_info()->{asoutflag} },
1857 asflags => sub { vms_info()->{asflags} },
1858 perlasm_scheme => sub { vms_info()->{perlasm_scheme} },
1860 disable => add('pinshared', 'loadereng'),
1864 # From HELP CC/POINTER_SIZE:
1867 # LONG[=ARGV] The compiler assumes 64-bit pointers. If the ARGV option to
1868 # LONG or 64 is present, the main argument argv will be an
1869 # array of long pointers instead of an array of short pointers.
1871 # 64[=ARGV] Same as LONG.
1874 # We don't want the hassle of dealing with 32-bit pointers with argv, so
1875 # we force it to have 64-bit pointers, see the added cflags in the -p64
1876 # config targets below.
1879 inherit_from => [ "vms-generic" ],
1880 bn_ops => "SIXTY_FOUR_BIT RC4_INT",
1883 "vms-alpha-p32" => {
1884 inherit_from => [ "vms-alpha" ],
1885 cflags => add("/POINTER_SIZE=32"),
1886 pointer_size => "32",
1888 "vms-alpha-p64" => {
1889 inherit_from => [ "vms-alpha" ],
1890 cflags => add("/POINTER_SIZE=64=ARGV"),
1891 pointer_size => "64",
1894 inherit_from => [ "vms-generic" ],
1895 bn_ops => "SIXTY_FOUR_BIT RC4_INT",
1896 asm_arch => sub { vms_info()->{AS} ? 'ia64' : undef },
1897 perlasm_scheme => 'ias',
1902 inherit_from => [ "vms-ia64" ],
1903 cflags => add("/POINTER_SIZE=32"),
1904 pointer_size => "32",
1907 inherit_from => [ "vms-ia64" ],
1908 cflags => add("/POINTER_SIZE=64=ARGV"),
1909 pointer_size => "64",