AIX.pm 833 B

1234567891011121314151617181920212223242526272829
  1. package platform::AIX;
  2. use strict;
  3. use warnings;
  4. use Carp;
  5. use vars qw(@ISA);
  6. require platform::Unix;
  7. @ISA = qw(platform::Unix);
  8. # Assume someone set @INC right before loading this module
  9. use configdata;
  10. sub dsoext { '.so' }
  11. sub shlibextsimple { '.a' }
  12. # In shared mode, the default static library names clashes with the final
  13. # "simple" full shared library name, so we add '_a' to the basename of the
  14. # static libraries in that case.
  15. sub staticname {
  16. # Non-installed libraries are *always* static, and their names remain
  17. # the same, except for the mandatory extension
  18. my $in_libname = platform::BASE->staticname($_[1]);
  19. return $in_libname
  20. if $unified_info{attributes}->{libraries}->{$_[1]}->{noinst};
  21. return platform::BASE->staticname($_[1]) . ($disabled{shared} ? '' : '_a');
  22. }