-
Notifications
You must be signed in to change notification settings - Fork 543
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
31 changed files
with
222 additions
and
43 deletions.
There are no files selected for viewing
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
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
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
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
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
33 changes: 33 additions & 0 deletions
33
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/msys.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,33 @@ | ||
package ExtUtils::CBuilder::Platform::msys; | ||
|
||
use warnings; | ||
use strict; | ||
use File::Spec; | ||
use ExtUtils::CBuilder::Platform::Unix; | ||
|
||
our $VERSION = '0.280234'; # VERSION | ||
our @ISA = qw(ExtUtils::CBuilder::Platform::Unix); | ||
|
||
# TODO: If a specific exe_file name is requested, if the exe created | ||
# doesn't have that name, we might want to rename it. Apparently asking | ||
# for an exe of "foo" might result in "foo.exe". Alternatively, we should | ||
# make sure the return value is correctly "foo.exe". | ||
# C.f http://rt.cpan.org/Public/Bug/Display.html?id=41003 | ||
sub link_executable { | ||
my $self = shift; | ||
return $self->SUPER::link_executable(@_); | ||
} | ||
|
||
sub link { | ||
my ($self, %args) = @_; | ||
|
||
my $lib = $self->{config}{useshrplib} ? 'libperl.dll.a' : 'libperl.a'; | ||
$args{extra_linker_flags} = [ | ||
File::Spec->catfile($self->perl_inc(), $lib), | ||
$self->split_like_shell($args{extra_linker_flags}) | ||
]; | ||
|
||
return $self->SUPER::link(%args); | ||
} | ||
|
||
1; |
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
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
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
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
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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
use strict; | ||
use ExtUtils::MakeMaker; | ||
|
||
our @LIBS; | ||
if( $^O eq 'msys' ) { | ||
@LIBS = ("-lgdbm -lgdbm_compat"); | ||
} else { | ||
@LIBS = ("-L/usr/local/lib -lndbm", "-ldbm -lucb"); | ||
}; | ||
|
||
WriteMakefile( | ||
NAME => 'NDBM_File', | ||
LIBS => ["-L/usr/local/lib -lndbm", "-ldbm -lucb"], | ||
LIBS => \@LIBS, | ||
XSPROTOARG => '-noprototypes', # XXX remove later? | ||
VERSION_FROM => 'NDBM_File.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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
use strict; | ||
use ExtUtils::MakeMaker; | ||
|
||
our @LIBS; | ||
if( $^O eq 'msys' ) { | ||
@LIBS = ("-lgdbm -lgdbm_compat"); | ||
} else { | ||
@LIBS = ("-ldbm -lucb"); | ||
}; | ||
|
||
WriteMakefile( | ||
NAME => 'ODBM_File', | ||
LIBS => ["-ldbm -lucb"], | ||
LIBS => \@LIBS, | ||
XSPROTOARG => '-noprototypes', # XXX remove later? | ||
VERSION_FROM => 'ODBM_File.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
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
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
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
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
Oops, something went wrong.