diff mbox series

[FFmpeg-devel] configure: use -flto=auto if available

Message ID 20220911163201.320266-1-kasper93@gmail.com
State New
Headers show
Series [FFmpeg-devel] configure: use -flto=auto if available | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Kacper Michajłow Sept. 11, 2022, 4:32 p.m. UTC
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
---
 configure | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

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