mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Rework build: add special cases for AIX
When reworking the way library file names and extensions were formed, AIX was lost in the process. This restores the previous functionality. Fixes #8156 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8162)
This commit is contained in:
parent
ca811248d8
commit
fb82cbfe3d
@ -1100,8 +1100,7 @@ my %targets = (
|
|||||||
module_ldflags => "-Wl,-G,-bsymbolic,-bexpall",
|
module_ldflags => "-Wl,-G,-bsymbolic,-bexpall",
|
||||||
shared_ldflag => "-Wl,-G,-bsymbolic",
|
shared_ldflag => "-Wl,-G,-bsymbolic",
|
||||||
shared_defflag => "-Wl,-bE:",
|
shared_defflag => "-Wl,-bE:",
|
||||||
lib_extension => shared("_a.a"),
|
perl_platform => 'AIX',
|
||||||
shared_extension_simple => shared(".a"),
|
|
||||||
},
|
},
|
||||||
"aix-gcc" => {
|
"aix-gcc" => {
|
||||||
inherit_from => [ "aix-common", asm("ppc32_asm") ],
|
inherit_from => [ "aix-common", asm("ppc32_asm") ],
|
||||||
|
27
Configurations/platform/AIX.pm
Normal file
27
Configurations/platform/AIX.pm
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
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 shlibextsimple { '.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.
|
||||||
|
sub staticname {
|
||||||
|
# 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}->{$_[1]}->{noinst};
|
||||||
|
|
||||||
|
return platform::BASE->staticname($_[1]) . '_a';
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user