From 80c9b8b2695be1b1d12f791db92ba000b1cbed8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sat, 22 Jan 2022 18:53:58 +0100 Subject: [PATCH] Enable LTO build for ffmpeg --- build_ffmpeg.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build_ffmpeg.sh b/build_ffmpeg.sh index f51c0d8d9..711e163c7 100644 --- a/build_ffmpeg.sh +++ b/build_ffmpeg.sh @@ -80,7 +80,11 @@ configure() ( --enable-libxml2 \ --enable-zlib \ --build-suffix=-lav \ - --arch=${arch}" + --arch=${arch} \ + --nm=${cross_prefix}gcc-nm \ + --ar=${cross_prefix}gcc-ar \ + --ranlib=${cross_prefix}gcc-ranlib \ + --enable-lto" EXTRA_CFLAGS="-fno-tree-vectorize -D_WIN32_WINNT=0x0600 -DWINVER=0x0600" EXTRA_LDFLAGS=""