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