This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update ExtUtils-CBuilder to CPAN version 0.280223
[perl5.git] / dist / ExtUtils-CBuilder / lib / ExtUtils / CBuilder / Platform / darwin.pm
1 package ExtUtils::CBuilder::Platform::darwin;
2 $ExtUtils::CBuilder::Platform::darwin::VERSION = '0.280223';
3 use strict;
4 use ExtUtils::CBuilder::Platform::Unix;
5
6 use vars qw(@ISA);
7 @ISA = qw(ExtUtils::CBuilder::Platform::Unix);
8
9 sub compile {
10   my $self = shift;
11   my $cf = $self->{config};
12
13   # -flat_namespace isn't a compile flag, it's a linker flag.  But
14   # it's mistakenly in Config.pm as both.  Make the correction here.
15   local $cf->{ccflags} = $cf->{ccflags};
16   $cf->{ccflags} =~ s/-flat_namespace//;
17   $self->SUPER::compile(@_);
18 }
19
20
21 1;