Subject: | Compilation failure on clang systems |
See http://matrix.cpantesters.org/?dist=Digest-SHA2%201.1.1 for an overview --- the module does not compile on some FreeBSD versions, notably on 10.x where clang is the default C compiler.
A sample report: http://www.cpantesters.org/cpan/report/a7d5b44c-361f-11e4-984c-c33e65711713
Simple fix: remove the unsupported -fschedule-insns2 option.
diff --git a/Makefile.PL b/Makefile.PL
index 69c3d08..ea404f6 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,6 +1,6 @@
use ExtUtils::MakeMaker;
-my $opt = '-O3 -funroll-loops -fomit-frame-pointer -fschedule-insns2 -Os -fno-strength-reduce -Wall -pipe';
+my $opt = '-O3 -funroll-loops -fomit-frame-pointer -Os -fno-strength-reduce -Wall -pipe';
my $defines = "";