https://github.com/arsv/perl-cross/issues/148 LTO confuses the configure tests. --- a/cnf/configure__f.sh +++ b/cnf/configure__f.sh @@ -276,7 +276,7 @@ try_compile() { require 'cc' require '_o' try_dump - run $cc $ccflags "$@" -c -o try$_o try.c >> $cfglog 2>&1 + run $cc $ccflags -fno-lto "$@" -c -o try$_o try.c >> $cfglog 2>&1 } # an equivalent of try_compile with -Werror, but without