Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] configure: use -flto=auto if available
@ 2022-09-11 16:32 Kacper Michajłow
  2022-09-11 18:36 ` [FFmpeg-devel] [PATCH v2] configure: try to use -flto=thin or " Kacper Michajłow
  0 siblings, 1 reply; 2+ messages in thread
From: Kacper Michajłow @ 2022-09-11 16:32 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Kacper Michajłow

Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
---
 configure | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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
 
-- 
2.37.3

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-11 18:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-11 16:32 [FFmpeg-devel] [PATCH] configure: use -flto=auto if available Kacper Michajłow
2022-09-11 18:36 ` [FFmpeg-devel] [PATCH v2] configure: try to use -flto=thin or " Kacper Michajłow

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git