]>
Commit | Line | Data |
---|---|---|
f4d8f037 | 1 | ## -*- mode: perl; -*- |
f09e7ca9 RS |
2 | ## Standard openssl configuration targets. |
3 | ## | |
4 | ## If you edit this file, run this command before committing | |
5 | ## make -f Makefile.org TABLE | |
6 | ## This file is interpolated by the Configure script. | |
7 | ||
f09e7ca9 RS |
8 | %targets = ( |
9 | ||
7ead0c89 | 10 | #### Basic configs that should work on any 32-bit box |
5e1b2353 RL |
11 | "gcc" => { |
12 | cc => "gcc", | |
7ead0c89 AP |
13 | cflags => "", |
14 | debug_cflags => "-O0 -g", | |
15 | release_cflags => "-O3", | |
5e1b2353 RL |
16 | thread_cflag => "(unknown)", |
17 | bn_ops => "BN_LLONG", | |
18 | }, | |
19 | "cc" => { | |
20 | cc => "cc", | |
21 | cflags => "-O", | |
22 | thread_cflag => "(unknown)", | |
23 | }, | |
f09e7ca9 | 24 | |
7ead0c89 | 25 | #### VOS Configurations |
5e1b2353 | 26 | "vos-gcc" => { |
5e1b2353 RL |
27 | cc => "gcc", |
28 | cflags => "-Wall -DOPENSSL_SYS_VOS -D_POSIX_C_SOURCE=200112L -D_BSD -D_VOS_EXTENDED_NAMES -DB_ENDIAN", | |
c2e27310 | 29 | debug_cflags => "-O0 -g -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG", |
5e1b2353 RL |
30 | release_cflags => "-O3", |
31 | thread_cflag => "(unknown)", | |
32 | sys_id => "VOS", | |
33 | lflags => "-Wl,-map", | |
34 | bn_ops => "BN_LLONG", | |
35 | shared_extension => ".so", | |
36 | }, | |
f09e7ca9 | 37 | |
f6739c3d AP |
38 | #### Solaros configirations |
39 | "solaris-common" => { | |
40 | template => 1, | |
41 | cflags => "-DFILIO_H", | |
42 | lflags => "-lsocket -lnsl -ldl", | |
43 | dso_scheme => "dlfcn", | |
44 | shared_target => "solaris-shared", | |
45 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
46 | }, | |
f09e7ca9 | 47 | #### Solaris x86 with GNU C setups |
5e1b2353 | 48 | "solaris-x86-gcc" => { |
7ead0c89 AP |
49 | # -DOPENSSL_NO_INLINE_ASM switches off inline assembler. We have |
50 | # to do it here because whenever GNU C instantiates an assembler | |
51 | # template it surrounds it with #APP #NO_APP comment pair which | |
52 | # (at least Solaris 7_x86) /usr/ccs/bin/as fails to assemble | |
53 | # with "Illegal mnemonic" error message. | |
f6739c3d | 54 | inherit_from => [ "solaris-common", asm("x86_elf_asm") ], |
7ead0c89 | 55 | cc => "gcc", |
f6739c3d | 56 | cflags => sub { join(" ","-march=pentium -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM",@_) }, |
7ead0c89 AP |
57 | debug_cflags => "-O0 -g", |
58 | release_cflags => "-O3 -fomit-frame-pointer", | |
757d1490 | 59 | thread_cflag => "-pthread", |
5e1b2353 | 60 | bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}", |
5e1b2353 RL |
61 | shared_cflag => "-fPIC", |
62 | shared_ldflag => "-shared", | |
5e1b2353 | 63 | }, |
5e1b2353 | 64 | "solaris64-x86_64-gcc" => { |
7ead0c89 AP |
65 | # -shared -static-libgcc might appear controversial, but modules |
66 | # taken from static libgcc do not have relocations and linking | |
67 | # them into our shared objects doesn't have any negative side | |
68 | # effects. On the contrary, doing so makes it possible to use | |
69 | # gcc shared build with Sun C. Given that gcc generates faster | |
70 | # code [thanks to inline assembler], I would actually recommend | |
71 | # to consider using gcc shared build even with vendor compiler:-) | |
72 | # <appro@fy.chalmers.se> | |
f6739c3d | 73 | inherit_from => [ "solaris-common", asm("x86_64_asm") ], |
7ead0c89 | 74 | cc => "gcc", |
f6739c3d | 75 | cflags => sub { join(" ","-m64 -Wall -DL_ENDIAN",@_) }, |
7ead0c89 AP |
76 | debug_cflags => "-O0 -g", |
77 | release_cflags => "-O3", | |
757d1490 | 78 | thread_cflag => "-pthread", |
5e1b2353 RL |
79 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL", |
80 | perlasm_scheme => "elf", | |
5e1b2353 RL |
81 | shared_cflag => "-fPIC", |
82 | shared_ldflag => "-m64 -shared -static-libgcc", | |
5e1b2353 RL |
83 | multilib => "/64", |
84 | }, | |
f09e7ca9 RS |
85 | |
86 | #### Solaris x86 with Sun C setups | |
5e1b2353 | 87 | "solaris-x86-cc" => { |
f6739c3d | 88 | inherit_from => [ "solaris-common" ], |
5e1b2353 | 89 | cc => "cc", |
f6739c3d | 90 | cflags => sub { join(" ","-xarch=generic -xstrconst -Xa -DL_ENDIAN",@_) }, |
7ead0c89 AP |
91 | debug_cflags => "-g", |
92 | release_cflags => "-xO5 -xregs=frameptr -xdepend -xbuiltin", | |
5e1b2353 | 93 | thread_cflag => "-D_REENTRANT", |
f6739c3d | 94 | lflags => sub { join(" ",@_,"-mt -lpthread") }, |
5e1b2353 | 95 | bn_ops => "BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_UNROLL BF_PTR", |
5e1b2353 RL |
96 | shared_cflag => "-KPIC", |
97 | shared_ldflag => "-G -dy -z text", | |
5e1b2353 RL |
98 | }, |
99 | "solaris64-x86_64-cc" => { | |
f6739c3d | 100 | inherit_from => [ "solaris-common", asm("x86_64_asm") ], |
5e1b2353 | 101 | cc => "cc", |
f6739c3d | 102 | cflags => sub { join(" ","-xarch=generic64 -xstrconst -Xa -DL_ENDIAN",@_) }, |
7ead0c89 AP |
103 | debug_cflags => "-g", |
104 | release_cflags => "-xO5 -xdepend -xbuiltin", | |
5e1b2353 | 105 | thread_cflag => "-D_REENTRANT", |
f6739c3d | 106 | lflags => sub { join(" ",@_,"-mt -lpthread") }, |
5e1b2353 RL |
107 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL", |
108 | perlasm_scheme => "elf", | |
5e1b2353 | 109 | shared_cflag => "-KPIC", |
7ead0c89 | 110 | shared_ldflag => "-xarch=generic64 -G -dy -z text", |
5e1b2353 RL |
111 | multilib => "/64", |
112 | }, | |
f09e7ca9 RS |
113 | |
114 | #### SPARC Solaris with GNU C setups | |
5e1b2353 | 115 | "solaris-sparcv7-gcc" => { |
f6739c3d | 116 | inherit_from => [ "solaris-common" ], |
5e1b2353 | 117 | cc => "gcc", |
f6739c3d | 118 | cflags => sub { join(" ","-Wall -DB_ENDIAN -DBN_DIV2W",@_) }, |
7ead0c89 AP |
119 | debug_cflags => "-O0 -g", |
120 | release_cflags => "-O3", | |
757d1490 | 121 | thread_cflag => "-pthread", |
5e1b2353 | 122 | bn_ops => "BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR", |
5e1b2353 RL |
123 | shared_cflag => "-fPIC", |
124 | shared_ldflag => "-shared", | |
5e1b2353 | 125 | }, |
5e1b2353 | 126 | "solaris-sparcv8-gcc" => { |
7ead0c89 | 127 | inherit_from => [ "solaris-sparcv7-gcc", asm("sparcv8_asm") ], |
f8a35ccc | 128 | cflags => sub { join(" ","-mcpu=v8",@_); }, |
5e1b2353 | 129 | }, |
5e1b2353 | 130 | "solaris-sparcv9-gcc" => { |
7ead0c89 | 131 | # -m32 should be safe to add as long as driver recognizes |
f6739c3d | 132 | # -mcpu=ultrasparc |
7ead0c89 | 133 | inherit_from => [ "solaris-sparcv7-gcc", asm("sparcv9_asm") ], |
7ead0c89 | 134 | cflags => sub { join(" ","-m32 -mcpu=ultrasparc",@_); }, |
c2e27310 | 135 | debug_cflags => "-DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DPEDANTIC -O -g -pedantic -ansi -Wshadow -Wno-long-long -D__EXTENSIONS__", |
5e1b2353 RL |
136 | }, |
137 | "solaris64-sparcv9-gcc" => { | |
7ead0c89 | 138 | inherit_from => [ "solaris-sparcv9-gcc" ], |
f6739c3d | 139 | cflags => sub { my $f=join(" ",@_); $f =~ s/\-m32/-m64/; $f; }, |
5e1b2353 | 140 | bn_ops => "BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL BF_PTR", |
5e1b2353 | 141 | shared_ldflag => "-m64 -shared", |
5e1b2353 RL |
142 | multilib => "/64", |
143 | }, | |
f09e7ca9 RS |
144 | |
145 | #### SPARC Solaris with Sun C setups | |
146 | # SC4.0 doesn't pass 'make test', upgrade to SC5.0 or SC4.2. | |
147 | # SC4.2 is ok, better than gcc even on bn as long as you tell it -xarch=v8 | |
148 | # SC5.0 note: Compiler common patch 107357-01 or later is required! | |
5e1b2353 | 149 | "solaris-sparcv7-cc" => { |
f6739c3d | 150 | inherit_from => [ "solaris-common" ], |
5e1b2353 | 151 | cc => "cc", |
f6739c3d | 152 | cflags => sub { join(" ","-xstrconst -Xa -DB_ENDIAN -DBN_DIV2W",@_) }, |
c2e27310 | 153 | debug_cflags => "-g -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG", |
7ead0c89 | 154 | release_cflags => "-xO5 -xdepend", |
5e1b2353 | 155 | thread_cflag => "-D_REENTRANT", |
f6739c3d | 156 | lflags => sub { join(" ",@_,"-mt -lpthread") }, |
5e1b2353 | 157 | bn_ops => "BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR", |
5e1b2353 RL |
158 | shared_cflag => "-KPIC", |
159 | shared_ldflag => "-G -dy -z text", | |
5e1b2353 | 160 | }, |
f09e7ca9 | 161 | #### |
5e1b2353 | 162 | "solaris-sparcv8-cc" => { |
7ead0c89 AP |
163 | inherit_from => [ "solaris-sparcv7-cc", asm("sparcv8_asm") ], |
164 | cflags => sub { join(" ","-xarch=v8",@_); }, | |
5e1b2353 RL |
165 | }, |
166 | "solaris-sparcv9-cc" => { | |
7ead0c89 AP |
167 | inherit_from => [ "solaris-sparcv7-cc", asm("sparcv9_asm") ], |
168 | cflags => sub { join(" ","-xarch=v8plus -xtarget=ultra",@_); }, | |
5e1b2353 RL |
169 | }, |
170 | "solaris64-sparcv9-cc" => { | |
7ead0c89 AP |
171 | inherit_from => [ "solaris-sparcv7-cc", asm("sparcv9_asm") ], |
172 | cflags => sub { join(" ","-xarch=v9 -xtarget=ultra",@_); }, | |
5e1b2353 | 173 | bn_ops => "BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC1 DES_UNROLL BF_PTR", |
5e1b2353 | 174 | shared_ldflag => "-xarch=v9 -G -dy -z text", |
5e1b2353 RL |
175 | multilib => "/64", |
176 | }, | |
f09e7ca9 RS |
177 | |
178 | #### IRIX 5.x configs | |
179 | # -mips2 flag is added by ./config when appropriate. | |
5e1b2353 | 180 | "irix-gcc" => { |
7ead0c89 | 181 | inherit_from => [ asm("mips32_asm") ], |
5e1b2353 | 182 | cc => "gcc", |
7ead0c89 AP |
183 | cflags => "-DB_ENDIAN", |
184 | debug_cflags => "-g -O0", | |
185 | release_cflags => "-O3", | |
5e1b2353 RL |
186 | thread_cflag => "(unknown)", |
187 | bn_ops => "BN_LLONG MD2_CHAR RC4_INDEX RC4_CHAR RC4_CHUNK DES_UNROLL DES_RISC2 DES_PTR BF_PTR", | |
188 | perlasm_scheme => "o32", | |
189 | dso_scheme => "dlfcn", | |
190 | shared_target => "irix-shared", | |
191 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
192 | }, | |
193 | "irix-cc" => { | |
7ead0c89 | 194 | inherit_from => [ asm("mips32_asm") ], |
5e1b2353 | 195 | cc => "cc", |
7ead0c89 AP |
196 | cflags => "-use_readonly_const -DB_ENDIAN", |
197 | debug_cflags => "-g -O0", | |
198 | release_cflags => "-O2", | |
5e1b2353 RL |
199 | thread_cflag => "(unknown)", |
200 | bn_ops => "BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC2 DES_UNROLL BF_PTR", | |
201 | perlasm_scheme => "o32", | |
202 | dso_scheme => "dlfcn", | |
203 | shared_target => "irix-shared", | |
204 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
205 | }, | |
f09e7ca9 RS |
206 | #### IRIX 6.x configs |
207 | # Only N32 and N64 ABIs are supported. If you need O32 ABI build, invoke | |
208 | # './Configure irix-cc -o32' manually. | |
5e1b2353 | 209 | "irix-mips3-gcc" => { |
7ead0c89 | 210 | inherit_from => [ asm("mips64_asm") ], |
5e1b2353 | 211 | cc => "gcc", |
7ead0c89 AP |
212 | cflags => "-mabi=n32 -DB_ENDIAN -DBN_DIV3W", |
213 | debug_cflags => "-g -O0", | |
214 | release_cflags => "-O3", | |
757d1490 | 215 | thread_cflag => "-D_SGI_MP_SOURCE -pthread", |
5e1b2353 RL |
216 | bn_ops => "MD2_CHAR RC4_INDEX RC4_CHAR RC4_CHUNK_LL DES_UNROLL DES_RISC2 DES_PTR BF_PTR SIXTY_FOUR_BIT", |
217 | perlasm_scheme => "n32", | |
218 | dso_scheme => "dlfcn", | |
219 | shared_target => "irix-shared", | |
220 | shared_ldflag => "-mabi=n32", | |
221 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
222 | multilib => "32", | |
223 | }, | |
224 | "irix-mips3-cc" => { | |
7ead0c89 | 225 | inherit_from => [ asm("mips64_asm") ], |
5e1b2353 | 226 | cc => "cc", |
7ead0c89 AP |
227 | cflags => "-n32 -mips3 -use_readonly_const -G0 -rdata_shared -DB_ENDIAN -DBN_DIV3W", |
228 | debug_cflags => "-g -O0", | |
229 | release_cflags => "-O2", | |
5e1b2353 | 230 | thread_cflag => "-D_SGI_MP_SOURCE", |
757d1490 | 231 | lflags => "-lpthread", |
5e1b2353 RL |
232 | bn_ops => "DES_PTR RC4_CHAR RC4_CHUNK_LL DES_RISC2 DES_UNROLL BF_PTR SIXTY_FOUR_BIT", |
233 | perlasm_scheme => "n32", | |
234 | dso_scheme => "dlfcn", | |
235 | shared_target => "irix-shared", | |
236 | shared_ldflag => "-n32", | |
237 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
238 | multilib => "32", | |
239 | }, | |
7ead0c89 | 240 | # N64 ABI builds. |
5e1b2353 | 241 | "irix64-mips4-gcc" => { |
7ead0c89 | 242 | inherit_from => [ asm("mips64_asm") ], |
5e1b2353 | 243 | cc => "gcc", |
7ead0c89 AP |
244 | cflags => "-mabi=64 -mips4 -DB_ENDIAN -DBN_DIV3W", |
245 | debug_cflags => "-g -O0", | |
246 | release_cflags => "-O3", | |
5e1b2353 RL |
247 | thread_cflag => "-D_SGI_MP_SOURCE", |
248 | bn_ops => "RC4_CHAR RC4_CHUNK DES_RISC2 DES_UNROLL SIXTY_FOUR_BIT_LONG", | |
249 | perlasm_scheme => "64", | |
250 | dso_scheme => "dlfcn", | |
251 | shared_target => "irix-shared", | |
252 | shared_ldflag => "-mabi=64", | |
253 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
254 | multilib => "64", | |
255 | }, | |
256 | "irix64-mips4-cc" => { | |
7ead0c89 | 257 | inherit_from => [ asm("mips64_asm") ], |
5e1b2353 | 258 | cc => "cc", |
7ead0c89 AP |
259 | cflags => "-64 -mips4 -use_readonly_const -G0 -rdata_shared -DB_ENDIAN -DBN_DIV3W", |
260 | debug_cflags => "-g -O0", | |
261 | release_cflags => "-O2", | |
5e1b2353 | 262 | thread_cflag => "-D_SGI_MP_SOURCE", |
757d1490 | 263 | lflags => "-lpthread", |
5e1b2353 RL |
264 | bn_ops => "RC4_CHAR RC4_CHUNK DES_RISC2 DES_UNROLL SIXTY_FOUR_BIT_LONG", |
265 | perlasm_scheme => "64", | |
266 | dso_scheme => "dlfcn", | |
267 | shared_target => "irix-shared", | |
268 | shared_ldflag => "-64", | |
269 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
270 | multilib => "64", | |
271 | }, | |
f09e7ca9 RS |
272 | |
273 | #### Unified HP-UX ANSI C configs. | |
274 | # Special notes: | |
275 | # - Originally we were optimizing at +O4 level. It should be noted | |
276 | # that the only difference between +O3 and +O4 is global inter- | |
277 | # procedural analysis. As it has to be performed during the link | |
278 | # stage the compiler leaves behind certain pseudo-code in lib*.a | |
279 | # which might be release or even patch level specific. Generating | |
280 | # the machine code for and analyzing the *whole* program appears | |
281 | # to be *extremely* memory demanding while the performance gain is | |
282 | # actually questionable. The situation is intensified by the default | |
283 | # HP-UX data set size limit (infamous 'maxdsiz' tunable) of 64MB | |
284 | # which is way too low for +O4. In other words, doesn't +O3 make | |
285 | # more sense? | |
286 | # - Keep in mind that the HP compiler by default generates code | |
287 | # suitable for execution on the host you're currently compiling at. | |
288 | # If the toolkit is ment to be used on various PA-RISC processors | |
7ead0c89 | 289 | # consider './Configure hpux-parisc-[g]cc +DAportable'. |
f09e7ca9 RS |
290 | # - -DMD32_XARRAY triggers workaround for compiler bug we ran into in |
291 | # 32-bit message digests. (For the moment of this writing) HP C | |
292 | # doesn't seem to "digest" too many local variables (they make "him" | |
293 | # chew forever:-). For more details look-up MD32_XARRAY comment in | |
294 | # crypto/sha/sha_lcl.h. | |
7ead0c89 AP |
295 | # - originally there were 32-bit hpux-parisc2-* targets. They were |
296 | # scrapped, because a) they were not interchangable with other 32-bit | |
297 | # targets; a) when critical 32-bit assembly modules detect if they | |
298 | # are executed on PA-RISC 2.0 and thus adequate performance is | |
299 | # provided. | |
f09e7ca9 | 300 | # <appro@fy.chalmers.se> |
5e1b2353 | 301 | "hpux-parisc-gcc" => { |
5e1b2353 | 302 | cc => "gcc", |
7ead0c89 AP |
303 | cflags => "-DB_ENDIAN -DBN_DIV2W", |
304 | debug_cflags => "-O0 -g", | |
305 | release_cflags => "-O3", | |
757d1490 | 306 | thread_cflag => "-pthread", |
5e1b2353 RL |
307 | lflags => "-Wl,+s -ldld", |
308 | bn_ops => "BN_LLONG DES_PTR DES_UNROLL DES_RISC1", | |
309 | dso_scheme => "dl", | |
310 | shared_target => "hpux-shared", | |
311 | shared_cflag => "-fPIC", | |
312 | shared_ldflag => "-shared", | |
313 | shared_extension => ".sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
314 | }, | |
315 | "hpux-parisc1_1-gcc" => { | |
7ead0c89 | 316 | inherit_from => [ "hpux-parisc-gcc", asm("parisc11_asm") ], |
5e1b2353 RL |
317 | multilib => "/pa1.1", |
318 | }, | |
5e1b2353 | 319 | "hpux64-parisc2-gcc" => { |
7ead0c89 | 320 | inherit_from => [ asm("parisc20_64_asm") ], |
5e1b2353 | 321 | cc => "gcc", |
7ead0c89 AP |
322 | cflags => "-DB_ENDIAN", |
323 | debug_cflags => "-O0 -g", | |
324 | release_cflags => "-O3", | |
325 | thread_cflag => "-D_REENTRANT", | |
5e1b2353 RL |
326 | lflags => "-ldl", |
327 | bn_ops => "SIXTY_FOUR_BIT_LONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT", | |
5e1b2353 RL |
328 | dso_scheme => "dlfcn", |
329 | shared_target => "hpux-shared", | |
330 | shared_cflag => "-fpic", | |
331 | shared_ldflag => "-shared", | |
332 | shared_extension => ".sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
333 | multilib => "/pa20_64", | |
334 | }, | |
f09e7ca9 | 335 | |
7ead0c89 AP |
336 | # More attempts at unified 10.X and 11.X targets for HP C compiler. |
337 | # | |
338 | # Chris Ruemmler <ruemmler@cup.hp.com> | |
339 | # Kevin Steves <ks@hp.se> | |
5e1b2353 | 340 | "hpux-parisc-cc" => { |
5e1b2353 | 341 | cc => "cc", |
7ead0c89 AP |
342 | cflags => "+Optrs_strongly_typed -Ae +ESlit -DB_ENDIAN -DBN_DIV2W -DMD32_XARRAY", |
343 | debug_cflags => "+O0 +d -g", | |
344 | release_cflags => "+O3", | |
5e1b2353 | 345 | thread_cflag => "-D_REENTRANT", |
757d1490 | 346 | lflags => "-Wl,+s -ldld -lpthread", |
5e1b2353 RL |
347 | bn_ops => "MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT", |
348 | dso_scheme => "dl", | |
349 | shared_target => "hpux-shared", | |
350 | shared_cflag => "+Z", | |
351 | shared_ldflag => "-b", | |
352 | shared_extension => ".sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
353 | }, | |
354 | "hpux-parisc1_1-cc" => { | |
7ead0c89 AP |
355 | inherit_from => [ "hpux-parisc-cc", asm("parisc11_asm") ], |
356 | cflags => sub { join(" ","+DA1.1",@_); }, | |
5e1b2353 RL |
357 | multilib => "/pa1.1", |
358 | }, | |
5e1b2353 | 359 | "hpux64-parisc2-cc" => { |
7ead0c89 | 360 | inherit_from => [ asm("parisc20_64_asm") ], |
5e1b2353 | 361 | cc => "cc", |
7ead0c89 AP |
362 | cflags => "+DD64 +Optrs_strongly_typed -Ae +ESlit -DB_ENDIAN -DMD32_XARRAY", |
363 | debug_cflags => "+O0 +d -g", | |
364 | release_cflags => "+O3", | |
365 | thread_cflag => "-D_REENTRANT", | |
757d1490 | 366 | lflags => "-ldl -lpthread", |
5e1b2353 RL |
367 | bn_ops => "SIXTY_FOUR_BIT_LONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC1 DES_INT", |
368 | dso_scheme => "dlfcn", | |
369 | shared_target => "hpux-shared", | |
370 | shared_cflag => "+Z", | |
371 | shared_ldflag => "+DD64 -b", | |
372 | shared_extension => ".sl.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
373 | multilib => "/pa20_64", | |
374 | }, | |
f09e7ca9 | 375 | |
7ead0c89 | 376 | # HP/UX IA-64 targets |
5e1b2353 | 377 | "hpux-ia64-cc" => { |
7ead0c89 | 378 | inherit_from => [ asm("ia64_asm") ], |
5e1b2353 | 379 | cc => "cc", |
7ead0c89 AP |
380 | cflags => "-Ae +DD32 +Olit=all -z -DB_ENDIAN", |
381 | debug_cflags => "+O0 +d -g", | |
382 | release_cflags => "+O2", | |
383 | thread_cflag => "-D_REENTRANT", | |
757d1490 | 384 | lflags => "-ldl -lpthread", |
5e1b2353 RL |
385 | bn_ops => "SIXTY_FOUR_BIT MD2_CHAR RC4_INDEX DES_UNROLL DES_RISC1 DES_INT", |
386 | dso_scheme => "dlfcn", | |
387 | shared_target => "hpux-shared", | |
388 | shared_cflag => "+Z", | |
389 | shared_ldflag => "+DD32 -b", | |
390 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
391 | multilib => "/hpux32", | |
392 | }, | |
7ead0c89 AP |
393 | # Frank Geurts <frank.geurts@nl.abnamro.com> has patiently assisted |
394 | # with debugging of the following config. | |
5e1b2353 | 395 | "hpux64-ia64-cc" => { |
7ead0c89 | 396 | inherit_from => [ asm("ia64_asm") ], |
5e1b2353 | 397 | cc => "cc", |
7ead0c89 AP |
398 | cflags => "-Ae +DD64 +Olit=all -z -DB_ENDIAN", |
399 | debug_cflags => "+O0 +d -g", | |
400 | release_cflags => "+O3", | |
401 | thread_cflag => "-D_REENTRANT", | |
757d1490 | 402 | lflags => "-ldl -lpthread", |
5e1b2353 RL |
403 | bn_ops => "SIXTY_FOUR_BIT_LONG MD2_CHAR RC4_INDEX DES_UNROLL DES_RISC1 DES_INT", |
404 | dso_scheme => "dlfcn", | |
405 | shared_target => "hpux-shared", | |
406 | shared_cflag => "+Z", | |
407 | shared_ldflag => "+DD64 -b", | |
408 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
409 | multilib => "/hpux64", | |
410 | }, | |
7ead0c89 | 411 | # GCC builds... |
5e1b2353 | 412 | "hpux-ia64-gcc" => { |
7ead0c89 | 413 | inherit_from => [ asm("ia64_asm") ], |
5e1b2353 | 414 | cc => "gcc", |
7ead0c89 AP |
415 | cflags => "-DB_ENDIAN", |
416 | debug_cflags => "-O0 -g", | |
417 | release_cflags => "-O3", | |
757d1490 | 418 | thread_cflag => "-pthread", |
5e1b2353 RL |
419 | lflags => "-ldl", |
420 | bn_ops => "SIXTY_FOUR_BIT MD2_CHAR RC4_INDEX DES_UNROLL DES_RISC1 DES_INT", | |
421 | dso_scheme => "dlfcn", | |
422 | shared_target => "hpux-shared", | |
423 | shared_cflag => "-fpic", | |
424 | shared_ldflag => "-shared", | |
425 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
426 | multilib => "/hpux32", | |
427 | }, | |
428 | "hpux64-ia64-gcc" => { | |
7ead0c89 | 429 | inherit_from => [ asm("ia64_asm") ], |
5e1b2353 | 430 | cc => "gcc", |
7ead0c89 AP |
431 | cflags => "-mlp64 -DB_ENDIAN", |
432 | debug_cflags => "-O0 -g", | |
433 | release_cflags => "-O3", | |
757d1490 | 434 | thread_cflag => "-pthread", |
5e1b2353 RL |
435 | lflags => "-ldl", |
436 | bn_ops => "SIXTY_FOUR_BIT_LONG MD2_CHAR RC4_INDEX DES_UNROLL DES_RISC1 DES_INT", | |
437 | dso_scheme => "dlfcn", | |
438 | shared_target => "hpux-shared", | |
439 | shared_cflag => "-fpic", | |
440 | shared_ldflag => "-mlp64 -shared", | |
441 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
442 | multilib => "/hpux64", | |
443 | }, | |
f09e7ca9 | 444 | |
f09e7ca9 | 445 | #### HP MPE/iX http://jazz.external.hp.com/src/openssl/ |
5e1b2353 RL |
446 | "MPE/iX-gcc" => { |
447 | cc => "gcc", | |
448 | cflags => "-D_ENDIAN -DBN_DIV2W -O3 -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB", | |
449 | thread_cflag => "(unknown)", | |
450 | sys_id => "MPE", | |
451 | lflags => "-L/SYSLOG/PUB -lsyslog -lsocket -lcurses", | |
452 | bn_ops => "BN_LLONG DES_PTR DES_UNROLL DES_RISC1", | |
453 | }, | |
f09e7ca9 | 454 | |
7ead0c89 | 455 | #### DEC Alpha OSF/1/Tru64 targets. |
f09e7ca9 RS |
456 | # |
457 | # "What's in a name? That which we call a rose | |
458 | # By any other word would smell as sweet." | |
459 | # | |
460 | # - William Shakespeare, "Romeo & Juliet", Act II, scene II. | |
461 | # | |
462 | # For gcc, the following gave a %50 speedup on a 164 over the 'DES_INT' version | |
463 | # | |
5e1b2353 | 464 | "osf1-alpha-gcc" => { |
7ead0c89 | 465 | inherit_from => [ asm("alpha_asm") ], |
5e1b2353 RL |
466 | cc => "gcc", |
467 | cflags => "-O3", | |
468 | thread_cflag => "(unknown)", | |
469 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_UNROLL DES_RISC1", | |
470 | dso_scheme => "dlfcn", | |
471 | shared_target => "alpha-osf1-shared", | |
472 | shared_extension => ".so", | |
473 | }, | |
474 | "osf1-alpha-cc" => { | |
7ead0c89 | 475 | inherit_from => [ asm("alpha_asm") ], |
5e1b2353 RL |
476 | cc => "cc", |
477 | cflags => "-std1 -tune host -O4 -readonly_strings", | |
478 | thread_cflag => "(unknown)", | |
479 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHUNK", | |
480 | dso_scheme => "dlfcn", | |
481 | shared_target => "alpha-osf1-shared", | |
482 | shared_extension => ".so", | |
483 | }, | |
484 | "tru64-alpha-cc" => { | |
7ead0c89 | 485 | inherit_from => [ asm("alpha_asm") ], |
5e1b2353 RL |
486 | cc => "cc", |
487 | cflags => "-std1 -tune host -fast -readonly_strings", | |
488 | thread_cflag => "-pthread", | |
489 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHUNK", | |
490 | dso_scheme => "dlfcn", | |
491 | shared_target => "alpha-osf1-shared", | |
492 | shared_ldflag => "-msym", | |
493 | shared_extension => ".so", | |
494 | }, | |
f09e7ca9 RS |
495 | |
496 | #### | |
497 | #### Variety of LINUX:-) | |
498 | #### | |
499 | # *-generic* is endian-neutral target, but ./config is free to | |
500 | # throw in -D[BL]_ENDIAN, whichever appropriate... | |
5e1b2353 | 501 | "linux-generic32" => { |
5e1b2353 | 502 | cc => "gcc", |
79100440 | 503 | cflags => "-Wall", |
c2e27310 | 504 | debug_cflags => "-O0 -g -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG", |
7ead0c89 | 505 | release_cflags => "-O3", |
757d1490 | 506 | thread_cflag => "-pthread", |
5e1b2353 RL |
507 | lflags => "-ldl", |
508 | bn_ops => "BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR", | |
509 | dso_scheme => "dlfcn", | |
510 | shared_target => "linux-shared", | |
511 | shared_cflag => "-fPIC", | |
512 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
513 | }, | |
7ead0c89 AP |
514 | "linux-generic64" => { |
515 | inherit_from => [ "linux-generic32" ], | |
516 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR", | |
517 | }, | |
518 | ||
5e1b2353 | 519 | "linux-ppc" => { |
7ead0c89 | 520 | inherit_from => [ "linux-generic32", asm("ppc32_asm") ], |
5e1b2353 | 521 | perlasm_scheme => "linux32", |
7ead0c89 AP |
522 | }, |
523 | "linux-ppc64" => { | |
524 | inherit_from => [ "linux-generic64", asm("ppc64_asm") ], | |
525 | cflags => "-m64 -Wall -DB_ENDIAN", | |
526 | perlasm_scheme => "linux64", | |
527 | shared_ldflag => "-m64", | |
528 | multilib => "64", | |
529 | }, | |
530 | "linux-ppc64le" => { | |
531 | inherit_from => [ "linux-generic64", asm("ppc64_asm") ], | |
532 | cflags => "-m64 -Wall -DL_ENDIAN", | |
533 | perlasm_scheme => "linux64le", | |
534 | shared_ldflag => "-m64", | |
5e1b2353 | 535 | }, |
f09e7ca9 | 536 | |
5e1b2353 | 537 | "linux-armv4" => { |
7ead0c89 AP |
538 | ################################################################ |
539 | # Note that -march is not among compiler options in linux-armv4 | |
540 | # target description. Not specifying one is intentional to give | |
541 | # you choice to: | |
542 | # | |
543 | # a) rely on your compiler default by not specifying one; | |
544 | # b) specify your target platform explicitly for optimal | |
545 | # performance, e.g. -march=armv6 or -march=armv7-a; | |
546 | # c) build "universal" binary that targets *range* of platforms | |
547 | # by specifying minimum and maximum supported architecture; | |
548 | # | |
549 | # As for c) option. It actually makes no sense to specify | |
550 | # maximum to be less than ARMv7, because it's the least | |
551 | # requirement for run-time switch between platform-specific | |
552 | # code paths. And without run-time switch performance would be | |
553 | # equivalent to one for minimum. Secondly, there are some | |
554 | # natural limitations that you'd have to accept and respect. | |
555 | # Most notably you can *not* build "universal" binary for | |
556 | # big-endian platform. This is because ARMv7 processor always | |
557 | # picks instructions in little-endian order. Another similar | |
558 | # limitation is that -mthumb can't "cross" -march=armv6t2 | |
559 | # boundary, because that's where it became Thumb-2. Well, this | |
560 | # limitation is a bit artificial, because it's not really | |
561 | # impossible, but it's deemed too tricky to support. And of | |
562 | # course you have to be sure that your binutils are actually | |
563 | # up to the task of handling maximum target platform. With all | |
564 | # this in mind here is an example of how to configure | |
565 | # "universal" build: | |
566 | # | |
567 | # ./Configure linux-armv4 -march=armv6 -D__ARM_MAX_ARCH__=8 | |
568 | # | |
569 | inherit_from => [ "linux-generic32", asm("armv4_asm") ], | |
570 | perlasm_scheme => "linux32", | |
5e1b2353 RL |
571 | }, |
572 | "linux-aarch64" => { | |
7ead0c89 | 573 | inherit_from => [ "linux-generic64", asm("aarch64_asm") ], |
5e1b2353 | 574 | perlasm_scheme => "linux64", |
5e1b2353 | 575 | }, |
a93d3e06 AP |
576 | "linux-arm64ilp32" => { # https://wiki.linaro.org/Platform/arm64-ilp32 |
577 | inherit_from => [ "linux-generic32", asm("aarch64_asm") ], | |
a2c1dedc | 578 | cflags => "-mabi=ilp32 -Wall", |
a93d3e06 AP |
579 | bn_ops => "SIXTY_FOUR_BIT RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR", |
580 | perlasm_scheme => "linux64", | |
581 | shared_ldflag => "-mabi=ilp32", | |
582 | }, | |
7ead0c89 | 583 | |
5e1b2353 | 584 | "linux-mips32" => { |
7ead0c89 AP |
585 | # Configure script adds minimally required -march for assembly |
586 | # support, if no -march was specified at command line. | |
587 | inherit_from => [ "linux-generic32", asm("mips32_asm") ], | |
588 | cflags => "-mabi=32 -Wall -DBN_DIV3W", | |
5e1b2353 | 589 | perlasm_scheme => "o32", |
7ead0c89 | 590 | shared_ldflag => "-mabi=32", |
5e1b2353 | 591 | }, |
7ead0c89 AP |
592 | # mips32 and mips64 below refer to contemporary MIPS Architecture |
593 | # specifications, MIPS32 and MIPS64, rather than to kernel bitness. | |
5e1b2353 | 594 | "linux-mips64" => { |
7ead0c89 AP |
595 | inherit_from => [ "linux-generic32", asm("mips64_asm") ], |
596 | cflags => "-mabi=n32 -Wall -DBN_DIV3W", | |
5e1b2353 RL |
597 | bn_ops => "SIXTY_FOUR_BIT RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR", |
598 | perlasm_scheme => "n32", | |
5e1b2353 | 599 | shared_ldflag => "-mabi=n32", |
5e1b2353 RL |
600 | multilib => "32", |
601 | }, | |
602 | "linux64-mips64" => { | |
7ead0c89 | 603 | inherit_from => [ "linux-generic64", asm("mips64_asm") ], |
5e1b2353 | 604 | cflags => "-mabi=64 -O3 -Wall -DBN_DIV3W", |
5e1b2353 | 605 | perlasm_scheme => "64", |
5e1b2353 | 606 | shared_ldflag => "-mabi=64", |
5e1b2353 RL |
607 | multilib => "64", |
608 | }, | |
7ead0c89 AP |
609 | |
610 | #### IA-32 targets... | |
5e1b2353 | 611 | "linux-elf" => { |
7ead0c89 | 612 | inherit_from => [ "linux-generic32", asm("x86_elf_asm") ], |
5e1b2353 | 613 | cc => "gcc", |
7ead0c89 | 614 | cflags => "-march=i486 -DL_ENDIAN -Wall", |
c2e27310 | 615 | debug_cflags => "-O0 -g -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG", |
79100440 | 616 | release_cflags => "-O3 -fomit-frame-pointer", |
79100440 | 617 | debug_lflags => "-lefence", |
5e1b2353 | 618 | bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}", |
5e1b2353 RL |
619 | }, |
620 | "linux-aout" => { | |
7ead0c89 | 621 | inherit_from => [ asm("x86_asm") ], |
5e1b2353 | 622 | cc => "gcc", |
7ead0c89 AP |
623 | cflags => "-DL_ENDIAN -march=i486 -Wall", |
624 | debug_cflags => "-O0 -g", | |
625 | release_cflags => "-O3 -fomit-frame-pointer", | |
5e1b2353 RL |
626 | thread_cflag => "(unknown)", |
627 | bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}", | |
628 | perlasm_scheme => "a.out", | |
629 | }, | |
7ead0c89 | 630 | |
5e1b2353 | 631 | "linux-x86_64" => { |
7ead0c89 | 632 | inherit_from => [ "linux-generic64", asm("x86_64_asm") ], |
79100440 | 633 | cflags => "-m64 -DL_ENDIAN -Wall", |
5e1b2353 RL |
634 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL", |
635 | perlasm_scheme => "elf", | |
7ead0c89 | 636 | shared_ldflag => "-m64", |
5e1b2353 RL |
637 | multilib => "64", |
638 | }, | |
7ead0c89 AP |
639 | "linux-x86_64-clang" => { |
640 | inherit_from => [ "linux-x86_64" ], | |
641 | cc => "clang", | |
190c8c60 | 642 | cflags => "-m64 -DL_ENDIAN -Wall -Wextra -Qunused-arguments", |
7ead0c89 | 643 | }, |
5e1b2353 | 644 | "linux-x32" => { |
7ead0c89 AP |
645 | inherit_from => [ "linux-generic32", asm("x86_64_asm") ], |
646 | cflags => "-mx32 -DL_ENDIAN -Wall", | |
5e1b2353 RL |
647 | bn_ops => "SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT DES_UNROLL", |
648 | perlasm_scheme => "elf", | |
5e1b2353 | 649 | shared_ldflag => "-mx32", |
5e1b2353 RL |
650 | multilib => "x32", |
651 | }, | |
7ead0c89 AP |
652 | |
653 | "linux-ia64" => { | |
654 | inherit_from => [ "linux-generic64", asm("ia64_asm") ], | |
655 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_UNROLL DES_INT", | |
656 | }, | |
657 | ||
5e1b2353 | 658 | "linux64-s390x" => { |
7ead0c89 AP |
659 | inherit_from => [ "linux-generic64", asm("s390x_asm") ], |
660 | cflags => "-m64 -Wall -DB_ENDIAN", | |
5e1b2353 | 661 | perlasm_scheme => "64", |
5e1b2353 | 662 | shared_ldflag => "-m64", |
5e1b2353 RL |
663 | multilib => "64", |
664 | }, | |
5e1b2353 | 665 | "linux32-s390x" => { |
7ead0c89 AP |
666 | #### So called "highgprs" target for z/Architecture CPUs |
667 | # "Highgprs" is kernel feature first implemented in Linux | |
668 | # 2.6.32, see /proc/cpuinfo. The idea is to preserve most | |
669 | # significant bits of general purpose registers not only | |
670 | # upon 32-bit process context switch, but even on | |
671 | # asynchronous signal delivery to such process. This makes | |
672 | # it possible to deploy 64-bit instructions even in legacy | |
673 | # application context and achieve better [or should we say | |
674 | # adequate] performance. The build is binary compatible with | |
675 | # linux-generic32, and the idea is to be able to install the | |
676 | # resulting libcrypto.so alongside generic one, e.g. as | |
677 | # /lib/highgprs/libcrypto.so.x.y, for ldconfig and run-time | |
678 | # linker to autodiscover. Unfortunately it doesn't work just | |
679 | # yet, because of couple of bugs in glibc | |
680 | # sysdeps/s390/dl-procinfo.c affecting ldconfig and ld.so.1... | |
681 | # | |
682 | inherit_from => [ "linux-generic32", asm("s390x_asm") ], | |
683 | cflags => "-m31 -Wall -Wa,-mzarch -DB_ENDIAN", | |
684 | bn_obj => sub { my $r=join(" ",@_); $r=~s/bn\-s390x/bn_asm/; $r; }, | |
5e1b2353 | 685 | perlasm_scheme => "31", |
5e1b2353 | 686 | shared_ldflag => "-m31", |
5e1b2353 RL |
687 | multilib => "/highgprs", |
688 | }, | |
7ead0c89 AP |
689 | |
690 | #### SPARC Linux setups | |
691 | # Ray Miller <ray.miller@computing-services.oxford.ac.uk> has | |
692 | # patiently assisted with debugging of following two configs. | |
5e1b2353 | 693 | "linux-sparcv8" => { |
7ead0c89 | 694 | inherit_from => [ "linux-generic32", asm("sparcv8_asm") ], |
f8a35ccc | 695 | cflags => "-mcpu=v8 -Wall -DB_ENDIAN -DBN_DIV2W", |
5e1b2353 | 696 | }, |
5e1b2353 | 697 | "linux-sparcv9" => { |
7ead0c89 AP |
698 | # it's a real mess with -mcpu=ultrasparc option under Linux, |
699 | # but -Wa,-Av8plus should do the trick no matter what. | |
700 | inherit_from => [ "linux-generic32", asm("sparcv9_asm") ], | |
701 | cflags => "-m32 -mcpu=ultrasparc -Wall -Wa,-Av8plus -DB_ENDIAN -DBN_DIV2W", | |
5e1b2353 | 702 | shared_ldflag => "-m32", |
5e1b2353 | 703 | }, |
5e1b2353 | 704 | "linux64-sparcv9" => { |
7ead0c89 AP |
705 | # GCC 3.1 is a requirement |
706 | inherit_from => [ "linux-generic64", asm("sparcv9_asm") ], | |
707 | cflags => "-m64 -mcpu=ultrasparc -Wall -DB_ENDIAN", | |
708 | bn_ops => "BN_LLONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR", | |
5e1b2353 | 709 | shared_ldflag => "-m64", |
5e1b2353 RL |
710 | multilib => "64", |
711 | }, | |
7ead0c89 | 712 | |
5e1b2353 | 713 | "linux-alpha-gcc" => { |
7ead0c89 AP |
714 | inherit_from => [ "linux-generic64", asm("alpha_asm") ], |
715 | cflags => "-DL_ENDIAN", | |
5e1b2353 | 716 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_UNROLL", |
5e1b2353 | 717 | }, |
5e1b2353 | 718 | "linux-c64xplus" => { |
7ead0c89 | 719 | # TI_CGT_C6000_7.3.x is a requirement |
5e1b2353 RL |
720 | cc => "cl6x", |
721 | cflags => "--linux -ea=.s -eo=.o -mv6400+ -o2 -ox -ms -pden -DOPENSSL_SMALL_FOOTPRINT", | |
722 | thread_cflag => "-D_REENTRANT", | |
723 | bn_ops => "BN_LLONG", | |
724 | cpuid_obj => "c64xpluscpuid.o", | |
725 | bn_obj => "bn-c64xplus.o c64xplus-gf2m.o", | |
726 | aes_obj => "aes-c64xplus.o aes_cbc.o aes_ctr.o", | |
727 | sha1_obj => "sha1-c64xplus.o sha256-c64xplus.o sha512-c64xplus.o", | |
728 | rc4_obj => "rc4-c64xplus.o", | |
729 | modes_obj => "ghash-c64xplus.o", | |
730 | perlasm_scheme => "void", | |
731 | dso_scheme => "dlfcn", | |
732 | shared_target => "linux-shared", | |
733 | shared_cflag => "--pic", | |
734 | shared_ldflag => "-z --sysv --shared", | |
735 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
736 | ranlib => "true", | |
737 | }, | |
f09e7ca9 | 738 | |
7ead0c89 | 739 | #### Android: linux-* but without pointers to headers and libs. |
449e3f26 AP |
740 | # |
741 | # It takes pair of prior-set environment variables to make it work: | |
742 | # | |
743 | # CROSS_SYSROOT=/some/where/android-ndk-<ver>/platforms/android-<apiver>/arch-< | |
744 | # CROSS_COMPILE=<prefix> | |
745 | # | |
746 | # As well as PATH adjusted to cover ${CROSS_COMPILE}gcc and company. | |
747 | # For example to compile for ICS and ARM with NDK 10d, you'd: | |
748 | # | |
749 | # ANDROID_NDK=/some/where/android-ndk-10d | |
750 | # CROSS_SYSROOT=$ANDROID_NDK/platforms/android-14/arch-arm | |
751 | # CROSS_COMPILE=arm-linux-adroideabi- | |
752 | # PATH=$ANDROID_NDK/toolchains/arm-linux-androideabi-4.8/prebuild/linux-x86_64/ | |
753 | # | |
5e1b2353 | 754 | "android" => { |
7ead0c89 | 755 | inherit_from => [ "linux-generic32" ], |
449e3f26 AP |
756 | # Special note about unconditional -fPIC and -pie. The underlying |
757 | # reason is that Lollipop refuses to run non-PIE. But what about | |
758 | # older systems and NDKs? -fPIC was never problem, so the only | |
759 | # concern if -pie. Older toolchains, e.g. r4, appear to handle it | |
760 | # and binaries turn mostly functional. "Mostly" means that oldest | |
761 | # Androids, such as Froyo, fail to handle executable, but newer | |
762 | # systems are perfectly capable of executing binaries targeting | |
763 | # Froyo. Keep in mind that in the nutshell Android builds are | |
764 | # about JNI, i.e. shared libraries, not applications. | |
765 | cflags => "-mandroid -fPIC --sysroot=\$(CROSS_SYSROOT) -Wa,--noexecstack -Wall", | |
7ead0c89 | 766 | debug_cflags => "-O0 -g", |
449e3f26 AP |
767 | lflags => "-pie%-ldl", |
768 | shared_cflag => "", | |
5e1b2353 RL |
769 | }, |
770 | "android-x86" => { | |
7ead0c89 AP |
771 | inherit_from => [ "android", asm("x86_asm") ], |
772 | release_cflags => "-O3 -fomit-frame-pointer", | |
5e1b2353 | 773 | bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}", |
7ead0c89 | 774 | perlasm_scheme => "android", |
5e1b2353 | 775 | }, |
449e3f26 AP |
776 | ################################################################ |
777 | # Contemporary Android applications can provide multiple JNI | |
778 | # providers in .apk, targeting multiple architectures. Among | |
779 | # them there is "place" for two ARM flavours: generic eabi and | |
780 | # armv7-a/hard-float. However, it should be noted that OpenSSL's | |
781 | # ability to engage NEON is not constrained by ABI choice, nor | |
782 | # is your ability to call OpenSSL from your application code | |
783 | # compiled with floating-point ABI other than default 'soft'. | |
784 | # [Latter thanks to __attribute__((pcs("aapcs"))) declaration.] | |
785 | # This means that choice of ARM libraries you provide in .apk | |
786 | # is driven by application needs. For example if application | |
787 | # itself benefits from NEON or is floating-point intensive, then | |
788 | # it might be appropriate to provide both libraries. Otherwise | |
789 | # just generic eabi would do. But in latter case it would be | |
790 | # appropriate to | |
791 | # | |
792 | # ./Configure android-armeabi -D__ARM_MAX_ARCH__=8 | |
793 | # | |
794 | # in order to build "universal" binary and allow OpenSSL take | |
795 | # advantage of NEON when it's available. | |
796 | # | |
797 | "android-armeabi" => { | |
7ead0c89 | 798 | inherit_from => [ "android", asm("armv4_asm") ], |
449e3f26 AP |
799 | }, |
800 | "android-armv7" => { | |
801 | inherit_from => [ "android-armeabi" ], | |
7ead0c89 | 802 | cflags => sub { join (" ","-march=armv7-a",@_); }, |
5e1b2353 RL |
803 | }, |
804 | "android-mips" => { | |
7ead0c89 | 805 | inherit_from => [ "android", asm("mips32_asm") ], |
5e1b2353 | 806 | perlasm_scheme => "o32", |
5e1b2353 | 807 | }, |
f09e7ca9 | 808 | |
5a3d915d AP |
809 | "android64" => { |
810 | inherit_from => [ "linux-generic64" ], | |
811 | cflags => "-mandroid -fPIC --sysroot=\$(CROSS_SYSROOT) -Wa,--noexecstack -Wall", | |
812 | debug_cflags => "-O0 -g", | |
813 | lflags => "-pie%-ldl", | |
814 | shared_cflag => "", | |
815 | }, | |
816 | "android64-aarch64" => { | |
817 | inherit_from => [ "android64", asm("aarch64_asm") ], | |
818 | perlasm_scheme => "linux64", | |
819 | }, | |
820 | ||
1818572d | 821 | #### *BSD |
5e1b2353 | 822 | "BSD-generic32" => { |
1818572d AP |
823 | # As for thread_cflag. Idea is to maintain "collective" set of |
824 | # flags, which would cover all BSD flavors. -pthread applies | |
825 | # to them all, but is treated differently. OpenBSD expands is | |
826 | # as -D_POSIX_THREAD -lc_r, which is sufficient. FreeBSD 4.x | |
827 | # expands it as -lc_r, which has to be accompanied by explicit | |
828 | # -D_THREAD_SAFE and sometimes -D_REENTRANT. FreeBSD 5.x | |
829 | # expands it as -lc_r, which seems to be sufficient? | |
d237a273 | 830 | cc => "cc", |
7ead0c89 AP |
831 | cflags => "-Wall", |
832 | debug_cflags => "-O0 -g", | |
833 | release_cflags => "-O3", | |
1818572d | 834 | thread_cflag => "-pthread -D_THREAD_SAFE -D_REENTRANT", |
5e1b2353 RL |
835 | bn_ops => "BN_LLONG RC2_CHAR RC4_INDEX DES_INT DES_UNROLL", |
836 | dso_scheme => "dlfcn", | |
837 | shared_target => "bsd-gcc-shared", | |
838 | shared_cflag => "-fPIC", | |
839 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
840 | }, | |
7ead0c89 AP |
841 | "BSD-generic64" => { |
842 | inherit_from => [ "BSD-generic32" ], | |
843 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL", | |
5e1b2353 | 844 | }, |
7ead0c89 AP |
845 | |
846 | "BSD-x86" => { | |
847 | inherit_from => [ "BSD-generic32", asm("x86_asm") ], | |
79100440 | 848 | cflags => "-DL_ENDIAN -Wall", |
79100440 | 849 | release_cflags => "-O3 -fomit-frame-pointer", |
5e1b2353 | 850 | bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}", |
5e1b2353 | 851 | shared_target => "bsd-shared", |
7ead0c89 | 852 | perlasm_scheme => "a.out", |
5e1b2353 | 853 | }, |
7ead0c89 AP |
854 | "BSD-x86-elf" => { |
855 | inherit_from => [ "BSD-x86" ], | |
856 | perlasm_scheme => "elf", | |
5e1b2353 | 857 | }, |
f09e7ca9 | 858 | |
7ead0c89 AP |
859 | "BSD-sparcv8" => { |
860 | inherit_from => [ "BSD-generic32", asm("sparcv8_asm") ], | |
f8a35ccc | 861 | cflags => "-mcpu=v8 -Wall -DB_ENDIAN", |
5e1b2353 | 862 | }, |
5e1b2353 | 863 | "BSD-sparc64" => { |
7ead0c89 AP |
864 | # -DMD32_REG_T=int doesn't actually belong in sparc64 target, it |
865 | # simply *happens* to work around a compiler bug in gcc 3.3.3, | |
866 | # triggered by RIPEMD160 code. | |
867 | inherit_from => [ "BSD-generic64", asm("sparcv9_asm") ], | |
868 | cflags => "-DB_ENDIAN -DMD32_REG_T=int -Wall", | |
5e1b2353 | 869 | bn_ops => "BN_LLONG RC2_CHAR RC4_CHUNK DES_INT DES_PTR DES_RISC2 BF_PTR", |
5e1b2353 | 870 | }, |
7ead0c89 | 871 | |
5e1b2353 | 872 | "BSD-ia64" => { |
7ead0c89 AP |
873 | inherit_from => [ "BSD-generic64", asm("ia64_asm") ], |
874 | cflags => "-DL_ENDIAN -Wall", | |
5e1b2353 | 875 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_UNROLL DES_INT", |
5e1b2353 | 876 | }, |
7ead0c89 | 877 | |
5e1b2353 | 878 | "BSD-x86_64" => { |
7ead0c89 AP |
879 | inherit_from => [ "BSD-generic64", asm("x86_64_asm") ], |
880 | cflags => "-DL_ENDIAN -Wall", | |
5e1b2353 RL |
881 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL", |
882 | perlasm_scheme => "elf", | |
5e1b2353 | 883 | }, |
f09e7ca9 | 884 | |
5e1b2353 | 885 | "bsdi-elf-gcc" => { |
7ead0c89 | 886 | inherit_from => [ asm("x86_elf_asm") ], |
5e1b2353 RL |
887 | cc => "gcc", |
888 | cflags => "-DPERL5 -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall", | |
889 | thread_cflag => "(unknown)", | |
890 | lflags => "-ldl", | |
891 | bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}", | |
892 | dso_scheme => "dlfcn", | |
893 | shared_target => "bsd-gcc-shared", | |
894 | shared_cflag => "-fPIC", | |
895 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
896 | }, | |
f09e7ca9 | 897 | |
5e1b2353 RL |
898 | "nextstep" => { |
899 | cc => "cc", | |
900 | cflags => "-O -Wall", | |
901 | unistd => "<libc.h>", | |
902 | thread_cflag => "(unknown)", | |
903 | bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}", | |
904 | }, | |
905 | "nextstep3.3" => { | |
906 | cc => "cc", | |
907 | cflags => "-O3 -Wall", | |
908 | unistd => "<libc.h>", | |
909 | thread_cflag => "(unknown)", | |
910 | bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}", | |
911 | }, | |
f09e7ca9 RS |
912 | |
913 | # QNX | |
5e1b2353 RL |
914 | "qnx4" => { |
915 | cc => "cc", | |
916 | cflags => "-DL_ENDIAN -DTERMIO", | |
917 | thread_cflag => "(unknown)", | |
918 | bn_ops => "${x86_gcc_des} ${x86_gcc_opts}", | |
919 | }, | |
920 | "QNX6" => { | |
5e1b2353 RL |
921 | cc => "gcc", |
922 | lflags => "-lsocket", | |
923 | dso_scheme => "dlfcn", | |
924 | shared_target => "bsd-gcc-shared", | |
925 | shared_cflag => "-fPIC", | |
926 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
927 | }, | |
928 | "QNX6-i386" => { | |
7ead0c89 | 929 | inherit_from => [ asm("x86_elf_asm") ], |
5e1b2353 RL |
930 | cc => "gcc", |
931 | cflags => "-DL_ENDIAN -O2 -Wall", | |
932 | lflags => "-lsocket", | |
933 | bn_ops => "${x86_gcc_des} ${x86_gcc_opts}", | |
934 | dso_scheme => "dlfcn", | |
935 | shared_target => "bsd-gcc-shared", | |
936 | shared_cflag => "-fPIC", | |
937 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
938 | }, | |
f09e7ca9 RS |
939 | |
940 | #### SCO/Caldera targets. | |
941 | # | |
942 | # Originally we had like unixware-*, unixware-*-pentium, unixware-*-p6, etc. | |
943 | # Now we only have blended unixware-* as it's the only one used by ./config. | |
944 | # If you want to optimize for particular microarchitecture, bypass ./config | |
945 | # and './Configure unixware-7 -Kpentium_pro' or whatever appropriate. | |
946 | # Note that not all targets include assembler support. Mostly because of | |
947 | # lack of motivation to support out-of-date platforms with out-of-date | |
948 | # compiler drivers and assemblers. Tim Rice <tim@multitalents.net> has | |
949 | # patiently assisted to debug most of it. | |
950 | # | |
951 | # UnixWare 2.0x fails destest with -O. | |
5e1b2353 RL |
952 | "unixware-2.0" => { |
953 | cc => "cc", | |
954 | cflags => "-DFILIO_H -DNO_STRINGS_H", | |
955 | thread_cflag => "-Kthread", | |
956 | lflags => "-lsocket -lnsl -lresolv -lx", | |
957 | bn_ops => "${x86_gcc_des} ${x86_gcc_opts}", | |
958 | }, | |
959 | "unixware-2.1" => { | |
960 | cc => "cc", | |
961 | cflags => "-O -DFILIO_H", | |
962 | thread_cflag => "-Kthread", | |
963 | lflags => "-lsocket -lnsl -lresolv -lx", | |
964 | bn_ops => "${x86_gcc_des} ${x86_gcc_opts}", | |
965 | }, | |
966 | "unixware-7" => { | |
7ead0c89 | 967 | inherit_from => [ asm("x86_elf_asm") ], |
5e1b2353 RL |
968 | cc => "cc", |
969 | cflags => "-O -DFILIO_H -Kalloca", | |
970 | thread_cflag => "-Kthread", | |
971 | lflags => "-lsocket -lnsl", | |
972 | bn_ops => "BN_LLONG MD2_CHAR RC4_INDEX ${x86_gcc_des}", | |
973 | perlasm_scheme => "elf-1", | |
974 | dso_scheme => "dlfcn", | |
975 | shared_target => "svr5-shared", | |
976 | shared_cflag => "-Kpic", | |
977 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
978 | }, | |
979 | "unixware-7-gcc" => { | |
7ead0c89 | 980 | inherit_from => [ asm("x86_elf_asm") ], |
5e1b2353 RL |
981 | cc => "gcc", |
982 | cflags => "-DL_ENDIAN -DFILIO_H -O3 -fomit-frame-pointer -march=pentium -Wall", | |
983 | thread_cflag => "-D_REENTRANT", | |
984 | lflags => "-lsocket -lnsl", | |
985 | bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}", | |
986 | perlasm_scheme => "elf-1", | |
987 | dso_scheme => "dlfcn", | |
988 | shared_target => "gnu-shared", | |
989 | shared_cflag => "-fPIC", | |
990 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
991 | }, | |
f09e7ca9 | 992 | # SCO 5 - Ben Laurie <ben@algroup.co.uk> says the -O breaks the SCO cc. |
5e1b2353 | 993 | "sco5-cc" => { |
7ead0c89 | 994 | inherit_from => [ asm("x86_elf_asm") ], |
5e1b2353 RL |
995 | cc => "cc", |
996 | cflags => "-belf", | |
997 | thread_cflag => "(unknown)", | |
998 | lflags => "-lsocket -lnsl", | |
999 | bn_ops => "${x86_gcc_des} ${x86_gcc_opts}", | |
1000 | perlasm_scheme => "elf-1", | |
1001 | dso_scheme => "dlfcn", | |
1002 | shared_target => "svr3-shared", | |
1003 | shared_cflag => "-Kpic", | |
1004 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
1005 | }, | |
1006 | "sco5-gcc" => { | |
7ead0c89 | 1007 | inherit_from => [ asm("x86_elf_asm") ], |
5e1b2353 RL |
1008 | cc => "gcc", |
1009 | cflags => "-O3 -fomit-frame-pointer", | |
1010 | thread_cflag => "(unknown)", | |
1011 | lflags => "-lsocket -lnsl", | |
1012 | bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}", | |
1013 | perlasm_scheme => "elf-1", | |
1014 | dso_scheme => "dlfcn", | |
1015 | shared_target => "svr3-shared", | |
1016 | shared_cflag => "-fPIC", | |
1017 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
1018 | }, | |
f09e7ca9 RS |
1019 | |
1020 | #### IBM's AIX. | |
5e1b2353 | 1021 | "aix-gcc" => { |
7ead0c89 | 1022 | inherit_from => [ asm("ppc32_asm") ], |
5e1b2353 | 1023 | cc => "gcc", |
7ead0c89 AP |
1024 | cflags => "-DB_ENDIAN", |
1025 | debug_cflags => "-O0 -g", | |
1026 | release_cflags => "-O", | |
5e1b2353 RL |
1027 | thread_cflag => "-pthread", |
1028 | sys_id => "AIX", | |
1029 | bn_ops => "BN_LLONG RC4_CHAR", | |
1030 | perlasm_scheme => "aix32", | |
1031 | dso_scheme => "dlfcn", | |
1032 | shared_target => "aix-shared", | |
1033 | shared_ldflag => "-shared -Wl,-G", | |
1034 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
1035 | arflags => "-X32", | |
1036 | }, | |
1037 | "aix64-gcc" => { | |
7ead0c89 | 1038 | inherit_from => [ asm("ppc64_asm") ], |
5e1b2353 | 1039 | cc => "gcc", |
7ead0c89 AP |
1040 | cflags => "-maix64 -DB_ENDIAN", |
1041 | debug_cflags => "-O0 -g", | |
1042 | release_cflags => "-O", | |
5e1b2353 RL |
1043 | thread_cflag => "-pthread", |
1044 | sys_id => "AIX", | |
1045 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR", | |
1046 | perlasm_scheme => "aix64", | |
1047 | dso_scheme => "dlfcn", | |
1048 | shared_target => "aix-shared", | |
1049 | shared_ldflag => "-maix64 -shared -Wl,-G", | |
1050 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
1051 | arflags => "-X64", | |
1052 | }, | |
7ead0c89 AP |
1053 | # Below targets assume AIX 5. Idea is to effectively disregard |
1054 | # $OBJECT_MODE at build time. $OBJECT_MODE is respected at | |
1055 | # ./config stage! | |
5e1b2353 | 1056 | "aix-cc" => { |
7ead0c89 | 1057 | inherit_from => [ asm("ppc32_asm") ], |
5e1b2353 | 1058 | cc => "cc", |
7ead0c89 AP |
1059 | cflags => "-q32 -DB_ENDIAN -qmaxmem=16384 -qro -qroconst", |
1060 | debug_cflags => "", | |
1061 | release_cflags => "-O", | |
5e1b2353 RL |
1062 | thread_cflag => "-qthreaded -D_THREAD_SAFE", |
1063 | sys_id => "AIX", | |
1064 | bn_ops => "BN_LLONG RC4_CHAR", | |
1065 | perlasm_scheme => "aix32", | |
1066 | dso_scheme => "dlfcn", | |
1067 | shared_target => "aix-shared", | |
1068 | shared_ldflag => "-q32 -G", | |
1069 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
1070 | arflags => "-X 32", | |
1071 | }, | |
1072 | "aix64-cc" => { | |
7ead0c89 | 1073 | inherit_from => [ asm("ppc64_asm") ], |
5e1b2353 | 1074 | cc => "cc", |
7ead0c89 AP |
1075 | cflags => "-q64 -DB_ENDIAN -qmaxmem=16384 -qro -qroconst", |
1076 | debug_cflags => "", | |
1077 | release_cflags => "-O", | |
5e1b2353 RL |
1078 | thread_cflag => "-qthreaded -D_THREAD_SAFE", |
1079 | sys_id => "AIX", | |
1080 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR", | |
1081 | perlasm_scheme => "aix64", | |
1082 | dso_scheme => "dlfcn", | |
1083 | shared_target => "aix-shared", | |
1084 | shared_ldflag => "-q64 -G", | |
1085 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
1086 | arflags => "-X 64", | |
1087 | }, | |
f09e7ca9 RS |
1088 | |
1089 | # SIEMENS BS2000/OSD: an EBCDIC-based mainframe | |
5e1b2353 RL |
1090 | "BS2000-OSD" => { |
1091 | cc => "c89", | |
1092 | cflags => "-O -XLLML -XLLMK -XL -DB_ENDIAN -DCHARSET_EBCDIC", | |
1093 | thread_cflag => "(unknown)", | |
1094 | lflags => "-lsocket -lnsl", | |
1095 | bn_ops => "THIRTY_TWO_BIT DES_PTR DES_UNROLL MD2_CHAR RC4_INDEX RC4_CHAR BF_PTR", | |
1096 | }, | |
f09e7ca9 RS |
1097 | |
1098 | # OS/390 Unix an EBCDIC-based Unix system on IBM mainframe | |
1099 | # You need to compile using the c89.sh wrapper in the tools directory, because the | |
1100 | # IBM compiler does not like the -L switch after any object modules. | |
1101 | # | |
5e1b2353 RL |
1102 | "OS390-Unix" => { |
1103 | cc => "c89.sh", | |
1104 | cflags => "-O -DB_ENDIAN -DCHARSET_EBCDIC -DNO_SYS_PARAM_H -D_ALL_SOURCE", | |
1105 | thread_cflag => "(unknown)", | |
1106 | bn_ops => "THIRTY_TWO_BIT DES_PTR DES_UNROLL MD2_CHAR RC4_INDEX RC4_CHAR BF_PTR", | |
1107 | }, | |
f09e7ca9 | 1108 | |
7ead0c89 | 1109 | #### Visual C targets |
f09e7ca9 RS |
1110 | # |
1111 | # Win64 targets, WIN64I denotes IA-64 and WIN64A - AMD64 | |
1112 | # | |
1113 | # Note about -wd4090, disable warning C4090. This warning returns false | |
1114 | # positives in some situations. Disabling it altogether masks both | |
1115 | # legitimate and false cases, but as we compile on multiple platforms, | |
1116 | # we rely on other compilers to catch legitimate cases. | |
7ead0c89 AP |
1117 | "VC-common" => { |
1118 | template => 1, | |
5e1b2353 | 1119 | cc => "cl", |
7ead0c89 | 1120 | cflags => "-W3 -wd4090 -Gs0 -GF -Gy -nologo -DOPENSSL_SYS_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE", |
5e1b2353 RL |
1121 | dso_scheme => "win32", |
1122 | }, | |
7ead0c89 AP |
1123 | "VC-WIN64I" => { |
1124 | inherit_from => [ "VC-common", asm("ia64_asm") ], | |
1125 | cflags => sub { join(" ",@_,"-DUNICODE -D_UNICODE"); }, | |
5e1b2353 RL |
1126 | sys_id => "WIN64I", |
1127 | bn_ops => "SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT EXPORT_VAR_AS_FN", | |
7ead0c89 AP |
1128 | bn_obj => sub { my $r=join(" ",@_); $r=~s/bn\-//; $r; }, |
1129 | rc4_obj => "", | |
5e1b2353 | 1130 | perlasm_scheme => "ias", |
5e1b2353 RL |
1131 | }, |
1132 | "VC-WIN64A" => { | |
7ead0c89 AP |
1133 | inherit_from => [ "VC-common", asm("x86_64_asm") ], |
1134 | cflags => sub { join(" ",@_,"-DUNICODE -D_UNICODE"); }, | |
5e1b2353 RL |
1135 | sys_id => "WIN64A", |
1136 | bn_ops => "SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT EXPORT_VAR_AS_FN", | |
7ead0c89 | 1137 | bn_obj => sub { my $r=join(" ",@_); $r=~s/x86_64\-gcc/bn_asm/; $r; }, |
5e1b2353 | 1138 | perlasm_scheme => "auto", |
5e1b2353 | 1139 | }, |
5e1b2353 | 1140 | "VC-WIN32" => { |
7ead0c89 AP |
1141 | # x86 Win32 target defaults to ANSI API, if you want UNICODE, |
1142 | # configure with 'perl Configure VC-WIN32 -DUNICODE -D_UNICODE' | |
1143 | inherit_from => [ "VC-common", asm("x86_asm") ], | |
5e1b2353 RL |
1144 | sys_id => "WIN32", |
1145 | bn_ops => "BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}", | |
1146 | perlasm_scheme => "win32n", | |
5e1b2353 | 1147 | }, |
5e1b2353 | 1148 | "VC-CE" => { |
5e1b2353 RL |
1149 | cc => "cl", |
1150 | sys_id => "WINCE", | |
1151 | bn_ops => "BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}", | |
1152 | dso_scheme => "win32", | |
1153 | }, | |
f09e7ca9 | 1154 | |
7ead0c89 | 1155 | #### Borland C++ 4.5 |
5e1b2353 | 1156 | "BC-32" => { |
5e1b2353 RL |
1157 | cc => "bcc32", |
1158 | sys_id => "WIN32", | |
1159 | bn_ops => "BN_LLONG DES_PTR RC4_INDEX EXPORT_VAR_AS_FN", | |
1160 | dso_scheme => "win32", | |
1161 | }, | |
f09e7ca9 | 1162 | |
7ead0c89 | 1163 | #### MinGW |
5e1b2353 | 1164 | "mingw" => { |
7ead0c89 | 1165 | inherit_from => [ asm("x86_asm") ], |
5e1b2353 | 1166 | cc => "gcc", |
dc898095 | 1167 | cflags => "-mno-cygwin -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -march=i486 -Wall", |
7ead0c89 | 1168 | debug_cflags => "-g -O0", |
80b1247f | 1169 | release_cflags => "-O3 -fomit-frame-pointer", |
5e1b2353 RL |
1170 | thread_cflag => "-D_MT", |
1171 | sys_id => "MINGW32", | |
1172 | lflags => "-lws2_32 -lgdi32 -lcrypt32", | |
1173 | bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN", | |
1174 | perlasm_scheme => "coff", | |
1175 | dso_scheme => "win32", | |
1176 | shared_target => "cygwin-shared", | |
1177 | shared_cflag => "-D_WINDLL -DOPENSSL_USE_APPLINK", | |
1178 | shared_ldflag => "-mno-cygwin", | |
1179 | shared_extension => ".dll.a", | |
1180 | }, | |
5e1b2353 | 1181 | "mingw64" => { |
7ead0c89 AP |
1182 | # As for OPENSSL_USE_APPLINK. Applink makes it possible to use |
1183 | # .dll compiled with one compiler with application compiled with | |
1184 | # another compiler. It's possible to engage Applink support in | |
1185 | # mingw64 build, but it's not done, because till mingw64 | |
1186 | # supports structured exception handling, one can't seriously | |
1187 | # consider its binaries for using with non-mingw64 run-time | |
1188 | # environment. And as mingw64 is always consistent with itself, | |
1189 | # Applink is never engaged and can as well be omitted. | |
1190 | inherit_from => [ asm("x86_64_asm") ], | |
1191 | cc => "gcc", | |
dc898095 | 1192 | cflags => "-mno-cygwin -DL_ENDIAN -Wall -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE", |
7ead0c89 | 1193 | debug_cflags => "-g -O0", |
80b1247f | 1194 | release_cflags => "-O3", |
5e1b2353 RL |
1195 | thread_cflag => "-D_MT", |
1196 | sys_id => "MINGW64", | |
1197 | lflags => "-lws2_32 -lgdi32 -lcrypt32", | |
1198 | bn_ops => "SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT EXPORT_VAR_AS_FN", | |
1199 | perlasm_scheme => "mingw64", | |
1200 | dso_scheme => "win32", | |
1201 | shared_target => "cygwin-shared", | |
1202 | shared_cflag => "-D_WINDLL", | |
1203 | shared_ldflag => "-mno-cygwin", | |
1204 | shared_extension => ".dll.a", | |
1205 | }, | |
f09e7ca9 | 1206 | |
4d60c7e1 DW |
1207 | #### UEFI |
1208 | "UEFI" => { | |
1209 | cc => "cc", | |
1210 | cflags => "-DL_ENDIAN -O", | |
1211 | sys_id => "UEFI", | |
1212 | }, | |
1213 | ||
7ead0c89 | 1214 | #### UWIN |
5e1b2353 | 1215 | "UWIN" => { |
5e1b2353 RL |
1216 | cc => "cc", |
1217 | cflags => "-DTERMIOS -DL_ENDIAN -O -Wall", | |
1218 | sys_id => "UWIN", | |
1219 | bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}", | |
1220 | dso_scheme => "win32", | |
1221 | }, | |
f09e7ca9 | 1222 | |
7ead0c89 | 1223 | #### Cygwin |
5e1b2353 | 1224 | "Cygwin" => { |
7ead0c89 | 1225 | inherit_from => [ asm("x86_asm") ], |
5e1b2353 | 1226 | cc => "gcc", |
7ead0c89 AP |
1227 | cflags => "-DTERMIOS -DL_ENDIAN -march=i486 -Wall", |
1228 | debug_cflags => "-g -O0", | |
80b1247f | 1229 | release_cflags => "-O3 -fomit-frame-pointer", |
5e1b2353 RL |
1230 | sys_id => "CYGWIN", |
1231 | bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}", | |
1232 | perlasm_scheme => "coff", | |
1233 | dso_scheme => "dlfcn", | |
1234 | shared_target => "cygwin-shared", | |
1235 | shared_cflag => "-D_WINDLL", | |
1236 | shared_ldflag => "-shared", | |
1237 | shared_extension => ".dll.a", | |
1238 | }, | |
1239 | "Cygwin-x86_64" => { | |
7ead0c89 | 1240 | inherit_from => [ asm("x86_64_asm") ], |
5e1b2353 | 1241 | cc => "gcc", |
7ead0c89 AP |
1242 | cflags => "-DTERMIOS -DL_ENDIAN -Wall", |
1243 | debug_cflags => "-g -O0", | |
80b1247f | 1244 | release_cflags => "-O3", |
5e1b2353 RL |
1245 | sys_id => "CYGWIN", |
1246 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL", | |
1247 | perlasm_scheme => "mingw64", | |
1248 | dso_scheme => "dlfcn", | |
1249 | shared_target => "cygwin-shared", | |
1250 | shared_cflag => "-D_WINDLL", | |
1251 | shared_ldflag => "-shared", | |
1252 | shared_extension => ".dll.a", | |
1253 | }, | |
f09e7ca9 | 1254 | |
7ead0c89 | 1255 | #### NetWare from David Ward (dsward@novell.com) |
f09e7ca9 RS |
1256 | # requires either MetroWerks NLM development tools, or gcc / nlmconv |
1257 | # NetWare defaults socket bio to WinSock sockets. However, | |
1258 | # the builds can be configured to use BSD sockets instead. | |
1259 | # netware-clib => legacy CLib c-runtime support | |
5e1b2353 RL |
1260 | "netware-clib" => { |
1261 | cc => "mwccnlm", | |
1262 | bn_ops => "${x86_gcc_opts}", | |
1263 | }, | |
1264 | "netware-clib-bsdsock" => { | |
1265 | cc => "mwccnlm", | |
1266 | bn_ops => "${x86_gcc_opts}", | |
1267 | }, | |
1268 | "netware-clib-gcc" => { | |
1269 | cc => "i586-netware-gcc", | |
1270 | cflags => "-nostdinc -I/ndk/nwsdk/include/nlm -I/ndk/ws295sdk/include -DL_ENDIAN -DNETWARE_CLIB -DOPENSSL_SYS_NETWARE -O2 -Wall", | |
1271 | bn_ops => "${x86_gcc_opts}", | |
1272 | }, | |
1273 | "netware-clib-bsdsock-gcc" => { | |
1274 | cc => "i586-netware-gcc", | |
1275 | cflags => "-nostdinc -I/ndk/nwsdk/include/nlm -DNETWARE_BSDSOCK -DNETDB_USE_INTERNET -DL_ENDIAN -DNETWARE_CLIB -DOPENSSL_SYS_NETWARE -O2 -Wall", | |
1276 | bn_ops => "${x86_gcc_opts}", | |
1277 | }, | |
7ead0c89 | 1278 | # netware-libc => LibC/NKS support |
5e1b2353 RL |
1279 | "netware-libc" => { |
1280 | cc => "mwccnlm", | |
1281 | bn_ops => "BN_LLONG ${x86_gcc_opts}", | |
1282 | }, | |
1283 | "netware-libc-bsdsock" => { | |
1284 | cc => "mwccnlm", | |
1285 | bn_ops => "BN_LLONG ${x86_gcc_opts}", | |
1286 | }, | |
1287 | "netware-libc-gcc" => { | |
1288 | cc => "i586-netware-gcc", | |
1289 | cflags => "-nostdinc -I/ndk/libc/include -I/ndk/libc/include/winsock -DL_ENDIAN -DNETWARE_LIBC -DOPENSSL_SYS_NETWARE -DTERMIO -O2 -Wall", | |
1290 | bn_ops => "BN_LLONG ${x86_gcc_opts}", | |
1291 | }, | |
1292 | "netware-libc-bsdsock-gcc" => { | |
1293 | cc => "i586-netware-gcc", | |
1294 | cflags => "-nostdinc -I/ndk/libc/include -DNETWARE_BSDSOCK -DL_ENDIAN -DNETWARE_LIBC -DOPENSSL_SYS_NETWARE -DTERMIO -O2 -Wall", | |
1295 | bn_ops => "BN_LLONG ${x86_gcc_opts}", | |
1296 | }, | |
f09e7ca9 | 1297 | |
7ead0c89 | 1298 | #### DJGPP |
5e1b2353 | 1299 | "DJGPP" => { |
7ead0c89 | 1300 | inherit_from => [ asm("x86_asm") ], |
5e1b2353 RL |
1301 | cc => "gcc", |
1302 | cflags => "-I/dev/env/WATT_ROOT/inc -DTERMIO -DL_ENDIAN -fomit-frame-pointer -O2 -Wall", | |
1303 | sys_id => "MSDOS", | |
1304 | lflags => "-L/dev/env/WATT_ROOT/lib -lwatt", | |
1305 | bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}", | |
1306 | perlasm_scheme => "a.out", | |
1307 | }, | |
f09e7ca9 | 1308 | |
7ead0c89 | 1309 | #### Ultrix from Bernhard Simon <simon@zid.tuwien.ac.at> |
5e1b2353 RL |
1310 | "ultrix-cc" => { |
1311 | cc => "cc", | |
1312 | cflags => "-std1 -O -Olimit 2500 -DL_ENDIAN", | |
1313 | thread_cflag => "(unknown)", | |
1314 | }, | |
1315 | "ultrix-gcc" => { | |
1316 | cc => "gcc", | |
1317 | cflags => "-O3 -DL_ENDIAN", | |
1318 | thread_cflag => "(unknown)", | |
1319 | bn_ops => "BN_LLONG", | |
1320 | }, | |
f09e7ca9 RS |
1321 | # K&R C is no longer supported; you need gcc on old Ultrix installations |
1322 | ##"ultrix","cc:-O2 -DNOPROTO -DNOCONST -DL_ENDIAN::(unknown):::::::", | |
1323 | ||
1324 | ##### MacOS X (a.k.a. Darwin) setup | |
7ead0c89 AP |
1325 | "darwin-common" => { |
1326 | template => 1, | |
5e1b2353 | 1327 | cc => "cc", |
7ead0c89 AP |
1328 | cflags => "", |
1329 | debug_cflags => "-g -O0", | |
79100440 | 1330 | release_cflags => "-O3", |
5e1b2353 RL |
1331 | thread_cflag => "-D_REENTRANT", |
1332 | sys_id => "MACOSX", | |
1333 | lflags => "-Wl,-search_paths_first%", | |
1334 | bn_ops => "BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR", | |
1335 | perlasm_scheme => "osx32", | |
1336 | dso_scheme => "dlfcn", | |
1337 | shared_target => "darwin-shared", | |
1338 | shared_cflag => "-fPIC -fno-common", | |
7ead0c89 | 1339 | shared_ldflag => "-dynamiclib", |
5e1b2353 RL |
1340 | shared_extension => ".\$(SHLIB_MAJOR).\$(SHLIB_MINOR).dylib", |
1341 | }, | |
7ead0c89 AP |
1342 | "darwin-ppc-cc" => { |
1343 | inherit_from => [ "darwin-common", asm("ppc32_asm") ], | |
1344 | cflags => "-arch ppc -DB_ENDIAN -Wa,-force_cpusubtype_ALL", | |
1345 | perlasm_scheme => "osx32", | |
1346 | shared_ldflag => "-arch ppc -dynamiclib", | |
1347 | }, | |
5e1b2353 | 1348 | "darwin64-ppc-cc" => { |
7ead0c89 AP |
1349 | inherit_from => [ "darwin-common", asm("ppc64_asm") ], |
1350 | cflags => "-arch ppc64 -DB_ENDIAN", | |
5e1b2353 RL |
1351 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR", |
1352 | perlasm_scheme => "osx64", | |
5e1b2353 | 1353 | shared_ldflag => "-arch ppc64 -dynamiclib", |
5e1b2353 RL |
1354 | }, |
1355 | "darwin-i386-cc" => { | |
7ead0c89 | 1356 | inherit_from => [ "darwin-common", asm("x86_asm") ], |
79100440 | 1357 | cflags => "-arch i386 -DL_ENDIAN", |
79100440 | 1358 | release_cflags => "-O3 -fomit-frame-pointer", |
5e1b2353 RL |
1359 | bn_ops => "BN_LLONG RC4_INT RC4_CHUNK DES_UNROLL BF_PTR", |
1360 | perlasm_scheme => "macosx", | |
5e1b2353 | 1361 | shared_ldflag => "-arch i386 -dynamiclib", |
5e1b2353 RL |
1362 | }, |
1363 | "darwin64-x86_64-cc" => { | |
7ead0c89 | 1364 | inherit_from => [ "darwin-common", asm("x86_64_asm") ], |
5e1b2353 | 1365 | cflags => "-arch x86_64 -DL_ENDIAN -Wall", |
5e1b2353 RL |
1366 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL", |
1367 | perlasm_scheme => "macosx", | |
5e1b2353 | 1368 | shared_ldflag => "-arch x86_64 -dynamiclib", |
5e1b2353 | 1369 | }, |
7ead0c89 AP |
1370 | |
1371 | #### iPhoneOS/iOS | |
f09e7ca9 RS |
1372 | # |
1373 | # It takes three prior-set environment variables to make it work: | |
1374 | # | |
1375 | # CROSS_COMPILE=/where/toolchain/is/usr/bin/ [note ending slash] | |
1376 | # CROSS_TOP=/where/SDKs/are | |
1377 | # CROSS_SDK=iPhoneOSx.y.sdk | |
1378 | # | |
1379 | # Exact paths vary with Xcode releases, but for couple of last ones | |
1380 | # they would look like this: | |
1381 | # | |
1382 | # CROSS_COMPILE=`xcode-select --print-path`/Toolchains/XcodeDefault.xctoolchain/usr/bin/ | |
1383 | # CROSS_TOP=`xcode-select --print-path`/Platforms/iPhoneOS.platform/Developer | |
7ead0c89 | 1384 | # CROSS_SDK=iPhoneOS.sdk |
f09e7ca9 | 1385 | # |
5e1b2353 | 1386 | "iphoneos-cross" => { |
7ead0c89 AP |
1387 | inherit_from => [ "darwin-common" ], |
1388 | cflags => "-isysroot \$(CROSS_TOP)/SDKs/\$(CROSS_SDK) -fno-common", | |
5e1b2353 | 1389 | sys_id => "iOS", |
5e1b2353 | 1390 | }, |
313e6ec1 AP |
1391 | "ios-cross" => { |
1392 | inherit_from => [ "darwin-common", asm("armv4_asm") ], | |
1393 | # It should be possible to go below iOS 6 and even add -arch armv6, | |
1394 | # thus targeting iPhone pre-3GS, but it's assumed to be irrelevant | |
d11582f1 | 1395 | # at this point. |
313e6ec1 AP |
1396 | cflags => "-arch armv7 -mios-version-min=6.0.0 -isysroot \$(CROSS_TOP)/SDKs/\$(CROSS_SDK) -fno-common", |
1397 | sys_id => "iOS", | |
1398 | perlasm_scheme => "ios32", | |
1399 | }, | |
5e1b2353 | 1400 | "ios64-cross" => { |
7ead0c89 AP |
1401 | inherit_from => [ "darwin-common", asm("aarch64_asm") ], |
1402 | cflags => "-arch arm64 -mios-version-min=7.0.0 -isysroot \$(CROSS_TOP)/SDKs/\$(CROSS_SDK) -fno-common", | |
5e1b2353 | 1403 | sys_id => "iOS", |
5e1b2353 RL |
1404 | bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR", |
1405 | perlasm_scheme => "ios64", | |
5e1b2353 | 1406 | }, |
f09e7ca9 RS |
1407 | |
1408 | ##### GNU Hurd | |
5e1b2353 | 1409 | "hurd-x86" => { |
7ead0c89 | 1410 | inherit_from => [ asm("x86_elf_asm") ], |
5e1b2353 RL |
1411 | cc => "gcc", |
1412 | cflags => "-DL_ENDIAN -O3 -fomit-frame-pointer -march=i486 -Wall", | |
757d1490 | 1413 | thread_cflag => "-pthread", |
5e1b2353 RL |
1414 | lflags => "-ldl", |
1415 | bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}", | |
1416 | dso_scheme => "dlfcn", | |
1417 | shared_target => "linux-shared", | |
1418 | shared_cflag => "-fPIC", | |
1419 | }, | |
f09e7ca9 RS |
1420 | |
1421 | ##### OS/2 EMX | |
5e1b2353 RL |
1422 | "OS2-EMX" => { |
1423 | cc => "gcc", | |
1424 | }, | |
f09e7ca9 RS |
1425 | |
1426 | ##### VxWorks for various targets | |
5e1b2353 RL |
1427 | "vxworks-ppc60x" => { |
1428 | cc => "ccppc", | |
1429 | 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", | |
1430 | sys_id => "VXWORKS", | |
1431 | lflags => "-Wl,--defsym,__wrs_rtp_base=0xe0000000 -L \$(WIND_BASE)/target/usr/lib/ppc/PPC32/common", | |
1432 | }, | |
1433 | "vxworks-ppcgen" => { | |
1434 | cc => "ccppc", | |
1435 | 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", | |
1436 | sys_id => "VXWORKS", | |
1437 | lflags => "-Wl,--defsym,__wrs_rtp_base=0xe0000000 -L \$(WIND_BASE)/target/usr/lib/ppc/PPC32/sfcommon", | |
1438 | }, | |
1439 | "vxworks-ppc405" => { | |
1440 | cc => "ccppc", | |
1441 | cflags => "-g -msoft-float -mlongcall -DCPU=PPC405 -I\$(WIND_BASE)/target/h", | |
1442 | sys_id => "VXWORKS", | |
1443 | lflags => "-r", | |
1444 | }, | |
1445 | "vxworks-ppc750" => { | |
1446 | cc => "ccppc", | |
1447 | 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)", | |
1448 | sys_id => "VXWORKS", | |
1449 | lflags => "-r", | |
1450 | }, | |
1451 | "vxworks-ppc750-debug" => { | |
1452 | cc => "ccppc", | |
c2e27310 | 1453 | 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 -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DPEDANTIC -DDEBUG_SAFESTACK -DDEBUG -g", |
5e1b2353 RL |
1454 | sys_id => "VXWORKS", |
1455 | lflags => "-r", | |
1456 | }, | |
1457 | "vxworks-ppc860" => { | |
1458 | cc => "ccppc", | |
1459 | cflags => "-nostdinc -msoft-float -DCPU=PPC860 -DNO_STRINGS_H -I\$(WIND_BASE)/target/h", | |
1460 | sys_id => "VXWORKS", | |
1461 | lflags => "-r", | |
1462 | }, | |
1463 | "vxworks-simlinux" => { | |
5e1b2353 RL |
1464 | cc => "ccpentium", |
1465 | 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", | |
1466 | sys_id => "VXWORKS", | |
1467 | lflags => "-r", | |
1468 | ranlib => "ranlibpentium", | |
1469 | }, | |
1470 | "vxworks-mips" => { | |
7ead0c89 | 1471 | inherit_from => [ asm("mips32_asm") ], |
5e1b2353 RL |
1472 | cc => "ccmips", |
1473 | cflags => "-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", | |
1474 | thread_cflag => "-D_REENTRANT", | |
1475 | sys_id => "VXWORKS", | |
1476 | lflags => "-Wl,--defsym,__wrs_rtp_base=0xe0000000 -L \$(WIND_BASE)/target/usr/lib/mips/MIPSI32/sfcommon", | |
1477 | perlasm_scheme => "o32", | |
1478 | ranlib => "ranlibmips", | |
1479 | }, | |
f09e7ca9 | 1480 | |
7ead0c89 | 1481 | #### uClinux |
5e1b2353 | 1482 | "uClinux-dist" => { |
5e1b2353 RL |
1483 | cc => "$ENV{'CC'}", |
1484 | cflags => "\$(CFLAGS)", | |
1485 | thread_cflag => "-D_REENTRANT", | |
1486 | lflags => "\$(LDFLAGS) \$(LDLIBS)", | |
1487 | bn_ops => "BN_LLONG", | |
1488 | dso_scheme => "$ENV{'LIBSSL_dlfcn'}", | |
1489 | shared_target => "linux-shared", | |
1490 | shared_cflag => "-fPIC", | |
1491 | shared_ldflag => "-shared", | |
1492 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
1493 | ranlib => "$ENV{'RANLIB'}", | |
1494 | }, | |
1495 | "uClinux-dist64" => { | |
5e1b2353 RL |
1496 | cc => "$ENV{'CC'}", |
1497 | cflags => "\$(CFLAGS)", | |
1498 | thread_cflag => "-D_REENTRANT", | |
1499 | lflags => "\$(LDFLAGS) \$(LDLIBS)", | |
1500 | bn_ops => "SIXTY_FOUR_BIT_LONG", | |
1501 | dso_scheme => "$ENV{'LIBSSL_dlfcn'}", | |
1502 | shared_target => "linux-shared", | |
1503 | shared_cflag => "-fPIC", | |
1504 | shared_ldflag => "-shared", | |
1505 | shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", | |
1506 | ranlib => "$ENV{'RANLIB'}", | |
1507 | }, | |
f09e7ca9 RS |
1508 | |
1509 | ); |