2017-03-15 05:09:57 +08:00
|
|
|
${-
|
2019-03-01 21:15:13 +08:00
|
|
|
use File::Spec::Functions qw(rel2abs);
|
|
|
|
|
|
|
|
my $bldtop = rel2abs($config{builddir});
|
2018-10-23 21:00:36 +08:00
|
|
|
our %names = ( map { platform->sharedname($_) =>
|
|
|
|
$bldtop.platform->sharedlib($_) }
|
2019-03-01 21:15:13 +08:00
|
|
|
grep { !$unified_info{attributes}->{$_}->{noinst} }
|
|
|
|
@{$unified_info{libraries}} );
|
2017-03-15 05:09:57 +08:00
|
|
|
"" -}
|
|
|
|
$ ! Create a local environment with the shared library logical names
|
|
|
|
$ ! properly set. Undo this with unlocal_shlib.com
|
|
|
|
$
|
|
|
|
$ OPENSSL_NAMES := OPENSSL_NAMES_'F$GETJPI("","PID")'
|
|
|
|
$ CREATE/NAME_TABLE/PARENT_TABLE=LNM$PROCESS_DIRECTORY 'OPENSSL_NAMES'
|
|
|
|
$ DEFINE/TABLE='OPENSSL_NAMES' OSSL_FLAG YES
|
|
|
|
$
|
|
|
|
$ NAMES := {- join(",", keys %names); -}
|
|
|
|
{-
|
2018-10-23 21:00:36 +08:00
|
|
|
join("\n", map { "\$ __$_ = \"".$names{$_}."\"" } sort keys %names);
|
2017-03-15 05:09:57 +08:00
|
|
|
-}
|
|
|
|
$ I = 0
|
|
|
|
$ LOOP:
|
|
|
|
$ E = F$ELEMENT(I,",",NAMES)
|
|
|
|
$ I = I + 1
|
|
|
|
$ IF E .EQS. "," THEN GOTO ENDLOOP
|
|
|
|
$ EV = __'E'
|
|
|
|
$ OLDV = F$TRNLNM(E,"LNM$PROCESS")
|
|
|
|
$ IF OLDV .NES. "" THEN DEFINE/TABLE='OPENSSL_NAMES' 'E' 'OLDV'
|
|
|
|
$ DEFINE 'E' 'EV'
|
|
|
|
$ GOTO LOOP
|
|
|
|
$ ENDLOOP:
|