Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/android.pm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package ExtUtils::CBuilder::Platform::android; | ||
|
||
use strict; | ||
use File::Spec; | ||
use ExtUtils::CBuilder::Platform::Unix; | ||
|
||
use vars qw($VERSION @ISA); | ||
$VERSION = '0.280212'; | ||
@ISA = qw(ExtUtils::CBuilder::Platform::Unix); | ||
|
||
# The Android linker will not recognize symbols from | ||
# libperl unless the module explicitly depends on it. | ||
sub link { | ||
my ($self, %args) = @_; | ||
|
||
if ($self->{config}{useshrplib}) { | ||
$args{extra_linker_flags} = [ | ||
$self->split_like_shell($args{extra_linker_flags}), | ||
'-L' . $self->perl_inc(), | ||
'-lperl', | ||
]; | ||
} | ||
|
||
return $self->SUPER::link(%args); | ||
} | ||
|
||
1; |