From 7ff69a2dfa48adbf53463c1e2d00ff80e4fd34f5 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Wed, 26 Nov 2014 19:29:05 +0000 Subject: [PATCH] Do not use ccstdflags with the core extensions. Signed-off-by: Chris 'BinGOs' Williams --- cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cpan') diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm index 518462adec..6cad8432b1 100644 --- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm +++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm @@ -192,9 +192,10 @@ sub cflags { = @Config{qw(cc ccflags optimize shellflags)}; # Perl 5.21.4 adds the (gcc) warning (-Wall ...) and std (-std=c89) - # flags to the %Config, and the modules in the core can be built - # with those. - my @ccextraflags = qw(ccwarnflags ccstdflags); + # flags to the %Config, and the modules in the core should be built + # with the warning flags, but NOT the -std=c89 flags (the latter + # would break using any system header files that are strict C99). + my @ccextraflags = qw(ccwarnflags); if ($ENV{PERL_CORE}) { for my $x (@ccextraflags) { if (exists $Config{$x}) { -- cgit v1.2.1