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