Remove -flto=auto (#66)
B Fraser authored 3 years ago
GitHub committed 3 years ago
31 | 31 | $mycflags .= " $ENV{CPPFLAGS}" if $ENV{CPPFLAGS}; |
32 | 32 | |
33 | 33 | #FIX: gcc with -flto is a trouble maker see https://github.com/DCIT/perl-CryptX/issues/32 |
34 | $mycflags =~ s/-flto\b//g; | |
34 | # EXTRA: -flto=auto gets added by some compilers -- we should also remove the the | |
35 | # =auto part, or it will end up in the gcc compilation line and break. | |
36 | $mycflags =~ s/-flto(?:=auto)\b//g; | |
35 | 37 | |
36 | 38 | #FIX: avoid -Wwrite-strings -Wcast-qual -pedantic -pedantic-errors -ansi -std=c89 |
37 | 39 | $mycflags =~ s/-pedantic\b//g; |