Codebase list libcryptx-perl / 89ad6bf
Remove -flto=auto (#66) B Fraser authored 3 years ago GitHub committed 3 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3131 $mycflags .= " $ENV{CPPFLAGS}" if $ENV{CPPFLAGS};
3232
3333 #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;
3537
3638 #FIX: avoid -Wwrite-strings -Wcast-qual -pedantic -pedantic-errors -ansi -std=c89
3739 $mycflags =~ s/-pedantic\b//g;