File: AIX.pm

package info (click to toggle)
openssl 3.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 143,188 kB
  • sloc: ansic: 632,036; perl: 234,368; asm: 6,546; sh: 1,604; pascal: 958; python: 596; makefile: 538; lisp: 35; ruby: 16; cpp: 10; sed: 6
file content (47 lines) | stat: -rw-r--r-- 1,612 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package platform::AIX;

use strict;
use warnings;
use Carp;

use vars qw(@ISA);

require platform::Unix;
@ISA = qw(platform::Unix);

# Assume someone set @INC right before loading this module
use configdata;

sub dsoext              { '.so' }
sub shlibextsimple      { return '.so' if $target{shared_target} eq "aix-solib";
			  '.a'}

# In shared mode, the default static library names clashes with the final
# "simple" full shared library name, so we add '_a' to the basename of the
# static libraries in that case, unless in solib mode (using only .so
# files for shared libraries, and not packaging them inside archives)
sub staticname {
    return platform::Unix->staticname($_[1]) if $target{shared_target} eq "aix-solib";

    # Non-installed libraries are *always* static, and their names remain
    # the same, except for the mandatory extension
    my $in_libname = platform::BASE->staticname($_[1]);
    return $in_libname
        if $unified_info{attributes}->{libraries}->{$_[1]}->{noinst};

    return platform::BASE->staticname($_[1]) . ($disabled{shared} ? '' : '_a');
}

# In solib mode, we do not install the simple symlink (we install the import
# library).  In regular mode, we install the symlink.
sub sharedlib_simple {
    return undef if $target{shared_target} eq "aix-solib";
    return platform::Unix->sharedlib_simple($_[1], $_[0]->shlibextsimple());
}

# In solib mode, we install the import library.  In regular mode, we have
# no import library.
sub sharedlib_import {
    return platform::Unix->sharedlib_simple($_[1]) if $target{shared_target} eq "aix-solib";
    return undef;
}