xref: /freebsd/crypto/openssl/util/unlocal_shlib.com.in (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1${-
2  use File::Spec::Functions qw(rel2abs);
3
4  my $bldtop = rel2abs($config{builddir});
5  our %names = ( map { platform->sharedname($_) =>
6                           $bldtop.platform->sharedlib($_) }
7                 grep { !$unified_info{attributes}->{libraries}->{$_}->{noinst} }
8                 @{$unified_info{libraries}} );
9  "" -}
10$       ! Remove the local environment created by local_shlib.com
11$
12$       OPENSSL_NAMES := OPENSSL_NAMES_'F$GETJPI("","PID")'
13$       IF F$TRNLNM("OSSL_FLAG",OPENSSL_NAMES) .EQS. "" THEN EXIT 0
14$
15$       NAMES := {- join(",", sort keys %names); -}
16$       I = 0
17$       LOOP:
18$           E = F$ELEMENT(I,",",NAMES)
19$           I = I + 1
20$           IF E .EQS. "," THEN GOTO ENDLOOP
21$           OLDV = F$TRNLNM(E,OPENSSL_NAMES)
22$           DEASSIGN 'E'
23$           IF OLDV .NES. "" THEN DEFINE 'E' 'OLDV'
24$           GOTO LOOP
25$       ENDLOOP:
26$
27$       DEASSIGN 'OPENSSL_NAMES' /TABLE=LNM$PROCESS_DIRECTORY
28