Codebase list libcryptx-perl / 0aeb24d
fix #70 - remove lto related hacks from Makefile.PL Karel Miko 2 years ago
1 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
3030 $mycflags .= " $ENV{CFLAGS}" if $ENV{CFLAGS};
3131 $mycflags .= " $ENV{CPPFLAGS}" if $ENV{CPPFLAGS};
3232
33 #FIX: gcc with -flto is a trouble maker see https://github.com/DCIT/perl-CryptX/issues/32
34 #FIX: another issue with "-flto=auto" see https://github.com/DCIT/perl-CryptX/pull/66
35 $mycflags =~ s/-flto=[a-zA-Z0-9]+//g; # -flto=auto -flto=jobserver -flto=N ...
36 $mycflags =~ s/-flto\b//g;
33 #### remove all lto hacks - https://github.com/DCIT/perl-CryptX/issues/70
34 ## #FIX: gcc with -flto is a trouble maker see https://github.com/DCIT/perl-CryptX/issues/32
35 ## #FIX: another issue with "-flto=auto" see https://github.com/DCIT/perl-CryptX/pull/66
36 ## $mycflags =~ s/-flto=[a-zA-Z0-9]+//g; # -flto=auto -flto=jobserver -flto=N ...
37 ## $mycflags =~ s/-flto\b//g;
3738
3839 #FIX: avoid -Wwrite-strings -Wcast-qual -pedantic -pedantic-errors -ansi -std=c89
40 $mycflags =~ s/-pedantic-errors\b//g;
3941 $mycflags =~ s/-pedantic\b//g;
40 $mycflags =~ s/-pedantic-errors\b//g;
4142 $mycflags =~ s/-std=c89\b//g;
4243 $mycflags =~ s/-ansi\b//g;
4344 $mycflags =~ s/-Wwrite-strings\b//g;