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