summaryrefslogtreecommitdiffstats
path: root/Configurations
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2021-07-26 12:40:01 +0200
committerPauli <pauli@openssl.org>2021-09-06 18:43:53 +1000
commit9d3cb1b2fa4752410dd79b55c4402cee66fe3c24 (patch)
treef93c6a04e217de9e4bf00fb168098a5905c78934 /Configurations
parent76e05540a2108bdb7d9366025505a3f4c6266699 (diff)
Configuration: support building for OpenVMS for x86_64
OpenVMS for x86_64 is currently out on a field test. Building programs for it is currently done with cross compilation on Itanium. The cross compilation tools are made available by running a script, which makes cross-compilation variants of most commands available, and adds the cross-compilation C compiler XCC. Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16498) (cherry picked from commit 6929c8fb5b46c9c2a383a7c212ee052e0dcef021)
Diffstat (limited to 'Configurations')
-rw-r--r--Configurations/50-vms-x86_64.conf20
-rw-r--r--Configurations/descrip.mms.tmpl2
2 files changed, 22 insertions, 0 deletions
diff --git a/Configurations/50-vms-x86_64.conf b/Configurations/50-vms-x86_64.conf
new file mode 100644
index 0000000000..ef6bd7b62c
--- /dev/null
+++ b/Configurations/50-vms-x86_64.conf
@@ -0,0 +1,20 @@
+## -*- mode: perl; -*-
+
+# OpenVMS for x86_64 is currently out on a field test. A native C compiler
+# is currently not available, but there are cross-compilation tools for
+# OpenVMS for Itanium. This configuration file holds the necessary target(s)
+# to make that useful.
+#
+# The assumption is that *building* is done on Itanium, and then the source
+# tree and build tree are transferred to x86_64, where tests can be performed,
+# and installation can be done.
+
+(
+ 'vms-x86_64' => {
+ inherit_from => [ 'vms-generic' ],
+ CC => 'XCC',
+ bn_ops => 'SIXTY_FOUR_BIT',
+ pointer_size => '',
+ setup_commands => [ '@SYS$MANAGER:X86_XTOOLS$SYLOGIN.COM' ],
+ }
+);
diff --git a/Configurations/descrip.mms.tmpl b/Configurations/descrip.mms.tmpl
index 2d17ddebfd..3db0fc7286 100644
--- a/Configurations/descrip.mms.tmpl
+++ b/Configurations/descrip.mms.tmpl
@@ -391,6 +391,8 @@ CPPFLAGS_Q={- (my $c = $lib_cppflags.$cppflags) =~ s|"|""|g;
# .FIRST and .LAST are special targets with MMS and MMK.
NODEBUG=@
.FIRST :
+ {- join( "\n \$(NODEBUG) ", @{ $target{setup_commands} // [] },
+ '!' ) -}
$(NODEBUG) sourcetop = F$PARSE("$(SRCDIR)","[]A.;",,,"SYNTAX_ONLY,NO_CONCEAL") - ".][000000" - "[000000." - "][" - "]A.;" + ".]"
$(NODEBUG) DEFINE ossl_sourceroot 'sourcetop'
$(NODEBUG) !