unlocal_shlib.com.in 862 B

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