aports/main/perl/digest-sha-cflags.patch
2023-07-03 18:51:58 +02:00

17 lines
571 B
Diff

don't override cflags with -O1 on x86*
--
diff --git a/cpan/Digest-SHA/Makefile.PL b/cpan/Digest-SHA/Makefile.PL
index af2c0c3..3606225 100644
--- a/cpan/Digest-SHA/Makefile.PL
+++ b/cpan/Digest-SHA/Makefile.PL
@@ -66,10 +66,6 @@ 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;