10-main.conf 81 KB

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