blob: 8399561a7bb99cffa93ad6596735ce1ace223d47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
|