fix #70 - remove lto related hacks from Makefile.PL
Karel Miko
2 years ago
30 | 30 | $mycflags .= " $ENV{CFLAGS}" if $ENV{CFLAGS}; |
31 | 31 | $mycflags .= " $ENV{CPPFLAGS}" if $ENV{CPPFLAGS}; |
32 | 32 | |
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; | |
37 | 38 | |
38 | 39 | #FIX: avoid -Wwrite-strings -Wcast-qual -pedantic -pedantic-errors -ansi -std=c89 |
40 | $mycflags =~ s/-pedantic-errors\b//g; | |
39 | 41 | $mycflags =~ s/-pedantic\b//g; |
40 | $mycflags =~ s/-pedantic-errors\b//g; | |
41 | 42 | $mycflags =~ s/-std=c89\b//g; |
42 | 43 | $mycflags =~ s/-ansi\b//g; |
43 | 44 | $mycflags =~ s/-Wwrite-strings\b//g; |