Skip to content

Commit

Permalink
Configure: use ELFv2 ABI on some ppc64 big endian systems
Browse files Browse the repository at this point in the history
If _CALL_ELF is defined to be 2, it's an ELFv2 system.
Conditionally switch to the v2 perlasm scheme.
  • Loading branch information
Andy Polyakov authored and q66 committed Aug 10, 2019
1 parent 3e79dd7 commit 35519af
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Configure
Expand Up @@ -1403,14 +1403,18 @@ if ($target{sys_id} ne "")
push @{$config{openssl_sys_defines}}, "OPENSSL_SYS_$target{sys_id}";
}

unless ($disabled{asm}) {
}

my %predefined_C = compiler_predefined($config{CROSS_COMPILE}.$config{CC});
my %predefined_CXX = $config{CXX}
? compiler_predefined($config{CROSS_COMPILE}.$config{CXX})
: ();

unless ($disabled{asm}) {
# big endian systems can use ELFv2 ABI
if ($target eq "linux-ppc64") {
$target{perlasm_scheme} = "linux64v2" if ($predefined_C{_CALL_ELF} == 2);
}
}

# Check for makedepend capabilities.
if (!$disabled{makedepend}) {
if ($config{target} =~ /^(VC|vms)-/) {
Expand Down

0 comments on commit 35519af

Please sign in to comment.