Message ID | 20220911163201.320266-1-kasper93@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] configure: use -flto=auto if available | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/configure b/configure index 9e51abd0d3..bf5a687239 100755 --- a/configure +++ b/configure @@ -7173,8 +7173,9 @@ check_optflags -fno-signed-zeros if enabled lto; then test "$cc_type" != "$ld_type" && die "LTO requires same compiler and linker" - check_cflags -flto - check_ldflags -flto $cpuflags + check_cflags -flto=auto || check_cflags -flto + check_ldflags -flto=auto || check_ldflags -flto + check_ldflags $cpuflags disable inline_asm_direct_symbol_refs fi
Signed-off-by: Kacper Michajłow <kasper93@gmail.com> --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)