diff --git a/Makefile.PL b/Makefile.PL index 65f4771..af2c0c3 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -64,6 +64,12 @@ if ($^O eq 'VMS') { } } + # Enhance performance on Intel when using gcc + +if ($Config{archname} =~ /^i[3456]86/ && $Config{ccname} eq 'gcc') { + push(@extra, OPTIMIZE => '-O1 -fomit-frame-pointer'); +} + my $fussy = '-Wall -Wextra -Wconversion -Wcast-align -Wpointer-arith '; push(@extra, CCFLAGS => $fussy . $Config{ccflags}) if $opt_w;