This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5db: remove leading ampersand.
[perl5.git] / ext / Win32CORE / Makefile.PL
CommitLineData
78ff2d7b
YST
1use ExtUtils::MakeMaker;
2
3WriteMakefile(
4 'NAME' => 'Win32CORE',
5 'VERSION_FROM' => 'Win32CORE.pm',
6);
b1d302cb
RU
7
8# undef USEIMPORTLIB for static compilation
9sub MY::cflags {
10 package MY; # so that "SUPER" works right
11 my ($self, $libperl)=@_;
12 return '' unless $self->needs_linking();
13 my $base = $self->SUPER::cflags($libperl);
14 if ($self->{LINKTYPE} eq 'static') {
15 $base =~ s/CCFLAGS =(.*)$/CCFLAGS =\1 -UUSEIMPORTLIB /m;
16 }
17 return $base;
18}