From 73378dc5e406774b7b4ce94ef27fc0b625a46110 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Wed, 26 Mar 2014 04:55:52 +0900 Subject: [PATCH] limit -std=gnu99 to solaris gcc only, though it may be harmless in many cases --- Makefile.PL | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index ed12e4f..dbc06e6 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -308,7 +308,11 @@ WriteMakefile( # this change broke a test under some environment, and thus, may # break other applications eventually. I'm not sure if this is # worth the trouble. - OPTIMIZE => $Config{optimize} . (($^O eq 'solaris' and !$Config{gccversion}) ? "" : " -O2 -std=gnu99"), + OPTIMIZE => $Config{optimize} . ( + ($^O eq 'solaris') + ? (!$Config{gccversion} ? "" : " -O2 -std=gnu99") + : " -O2" + ), OPTIONAL( '6.48', MIN_PERL_VERSION => '5.006', ),