提交 8842005e 编写于 作者: R Richard Levitte

Have the VMS shared library file names contain the shared version

Also, have the static library file names contain the pointer size when
applicable.
Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 34d5490a
...@@ -579,7 +579,7 @@ EOF ...@@ -579,7 +579,7 @@ EOF
my $shlib = $args{shlib}; my $shlib = $args{shlib};
my $libd = dirname($lib); my $libd = dirname($lib);
my $libn = basename($lib); my $libn = basename($lib);
(my $mkdef_key = $libn) =~ s/^${osslprefix_q}lib//i; (my $mkdef_key = $libn) =~ s/^${osslprefix_q}lib([^0-9]*)\d*/$1/i;
my @deps = map { my @deps = map {
$disabled{shared} ? $_.".OLB" $disabled{shared} ? $_.".OLB"
: $unified_info{sharednames}->{$_}.".EXE"; } @{$args{deps}}; : $unified_info{sharednames}->{$_}.".EXE"; } @{$args{deps}};
......
...@@ -36,7 +36,10 @@ $ DEAS OSSL$LIB'v' ...@@ -36,7 +36,10 @@ $ DEAS OSSL$LIB'v'
$ DEAS OSSL$SHARE'v' $ DEAS OSSL$SHARE'v'
$ DEAS OSSL$ENGINES'v' $ DEAS OSSL$ENGINES'v'
$ DEAS OSSL$EXE'v' $ DEAS OSSL$EXE'v'
$ {- join("\n\$ ", map { my $x = uc $_; "DEAS ${x}'v'" } @{$config{shared_libs}}) -} $ DEAS OSSL$LIBCRYPTO'pz''v'
$ DEAS OSSL$LIBSSL'pz''v'
$ DEAS OSSL$LIBCRYPTO'sv'_SHR'pz'
$ DEAS OSSL$LIBSSL'sv'_SHR'pz'
$ IF P2 .NES. "NOALIASES" $ IF P2 .NES. "NOALIASES"
$ THEN $ THEN
$ DEAS OSSL$ROOT $ DEAS OSSL$ROOT
...@@ -46,7 +49,10 @@ $ DEAS OSSL$SHARE ...@@ -46,7 +49,10 @@ $ DEAS OSSL$SHARE
$ DEAS OSSL$ENGINES $ DEAS OSSL$ENGINES
$ DEAS OSSL$EXE $ DEAS OSSL$EXE
$ DEAS OPENSSL $ DEAS OPENSSL
$ {- join("\n\$ ", map { my $x = uc $_; "DEAS ${x}" } @{$config{shared_libs}}) -} $ DEAS OSSL$LIBCRYPTO'pz'
$ DEAS OSSL$LIBSSL'pz'
$ DEAS OSSL$LIBCRYPTO_SHR'pz'
$ DEAS OSSL$LIBSSL_SHR'pz'
$ ENDIF $ ENDIF
$ $
$ EXIT 'status' $ EXIT 'status'
...@@ -85,12 +85,15 @@ $ sv := {- sprintf "%02d%02d", $config{shlib_major}, $config{shlib_minor} -} ...@@ -85,12 +85,15 @@ $ sv := {- sprintf "%02d%02d", $config{shlib_major}, $config{shlib_minor} -}
$ pz := {- $config{pointer_size} -} $ pz := {- $config{pointer_size} -}
$ $
$ DEFT OSSL$INSTROOT'v' 'INSTALLTOP_' $ DEFT OSSL$INSTROOT'v' 'INSTALLTOP_'
$ DEFT OSSL$INCLUDE'v' OSSL$INSTROOT:[INCLUDE.] $ DEFT OSSL$INCLUDE'v' OSSL$INSTROOT'v':[INCLUDE.]
$ DEF OSSL$LIB'v' OSSL$INSTROOT:[LIB.'arch'] $ DEF OSSL$LIB'v' OSSL$INSTROOT'v':[LIB.'arch']
$ DEF OSSL$SHARE'v' OSSL$INSTROOT:[LIB.'arch'] $ DEF OSSL$SHARE'v' OSSL$INSTROOT'v':[LIB.'arch']
$ DEF OSSL$ENGINES'v' OSSL$INSTROOT:[ENGINES.'arch'] $ DEF OSSL$ENGINES'v' OSSL$INSTROOT'v':[ENGINES.'arch']
$ DEF OSSL$EXE'v' OSSL$INSTROOT:[EXE.'arch'] $ DEF OSSL$EXE'v' OSSL$INSTROOT'v':[EXE.'arch']
$ {- join("\n\$ ", map { my $x = uc $_; "DEF ${x}'v' OSSL\$SHARE:${x}" } @{$config{shared_libs}}) -} $ DEF OSSL$LIBCRYPTO'pz''v' OSSL$LIB'v':OSSL$LIBCRYPTO'pz'.OLB
$ DEF OSSL$LIBSSL'pz''v' OSSL$LIB'v':OSSL$LIBSSL'pz'.OLB
$ DEF OSSL$LIBCRYPTO'sv'_SHR'pz' OSSL$SHARE'v':OSSL$LIBCRYPTO'sv'_SHR'pz'.EXE
$ DEF OSSL$LIBSSL'sv'_SHR'pz' OSSL$SHARE'v':OSSL$LIBSSL'sv'_SHR'pz'.EXE
$ IF P2 .NES. "NOALIASES" $ IF P2 .NES. "NOALIASES"
$ THEN $ THEN
$ DEF OSSL$INSTROOT OSSL$INSTROOT'v' $ DEF OSSL$INSTROOT OSSL$INSTROOT'v'
...@@ -99,8 +102,11 @@ $ DEF OSSL$LIB OSSL$LIB'v' ...@@ -99,8 +102,11 @@ $ DEF OSSL$LIB OSSL$LIB'v'
$ DEF OSSL$SHARE OSSL$SHARE'v' $ DEF OSSL$SHARE OSSL$SHARE'v'
$ DEF OSSL$ENGINES OSSL$ENGINES'v' $ DEF OSSL$ENGINES OSSL$ENGINES'v'
$ DEF OSSL$EXE OSSL$EXE'v' $ DEF OSSL$EXE OSSL$EXE'v'
$ DEF OSSL$LIBCRYPTO'pz' OSSL$LIBCRYPTO'pz''v'
$ DEF OSSL$LIBSSL'pz' OSSL$LIBSSL'pz''v'
$ DEF OSSL$LIBCRYPTO_SHR'pz' OSSL$LIBCRYPTO'sv'_SHR'pz'
$ DEF OSSL$LIBSSL_SHR'pz' OSSL$LIBSSL'sv'_SHR'pz'
$ DEF OPENSSL OSSL$INCLUDE:[OPENSSL] $ DEF OPENSSL OSSL$INCLUDE:[OPENSSL]
$ {- join("\n\$ ", map { my $x = uc $_; "DEF ${x} ${x}'v'" } @{$config{shared_libs}}) -}
$ ENDIF $ ENDIF
$ $
$ DEFT OSSL$DATAROOT 'OPENSSLDIR_' $ DEFT OSSL$DATAROOT 'OPENSSLDIR_'
......
...@@ -31,11 +31,11 @@ ENDIF ...@@ -31,11 +31,11 @@ ENDIF
# VMS has a cultural standard where all libraries are prefixed. # VMS has a cultural standard where all libraries are prefixed.
# For OpenSSL, the choice is 'ossl$' (this prefix was claimed in a # For OpenSSL, the choice is 'ossl$' (this prefix was claimed in a
# conversation with VSI, Tuesday January 26 2016) # conversation with VSI, Tuesday January 26 2016)
# Also, it seems it's usual to have a suffix to the shared library name # Also, it seems it's usual to have the pointer size the libraries
# for the different pointer sizes that were built for. # were built for as part of the name.
IF[{- $config{target} =~ /^vms/ -}] IF[{- $config{target} =~ /^vms/ -}]
RENAME[libcrypto]=ossl$libcrypto RENAME[libcrypto]=ossl$libcrypto{- $target{pointer_size} -}
RENAME[libssl]=ossl$libssl RENAME[libssl]=ossl$libssl{- $target{pointer_size} -}
SHARED_NAME[libcrypto]=ossl$libcrypto_shr{- $target{pointer_size} -} SHARED_NAME[libcrypto]=ossl$libcrypto{- sprintf "%02d%02d", $config{shlib_major}, $config{shlib_minor} -}_shr{- $target{pointer_size} -}
SHARED_NAME[libssl]=ossl$libssl_shr{- $target{pointer_size} -} SHARED_NAME[libssl]=ossl$libssl{- sprintf "%02d%02d", $config{shlib_major}, $config{shlib_minor} -}_shr{- $target{pointer_size} -}
ENDIF ENDIF
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册