From 29567df40777f26c63159774ecce222801665694 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 20 Feb 2025 04:07:44 +0000 Subject: [PATCH] Re-enable ffmpeg optimizations on Linux By disabling LTO --- Telegram/build/docker/centos_env/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Telegram/build/docker/centos_env/Dockerfile b/Telegram/build/docker/centos_env/Dockerfile index 2ecc562238..f0a797d0f4 100644 --- a/Telegram/build/docker/centos_env/Dockerfile +++ b/Telegram/build/docker/centos_env/Dockerfile @@ -486,11 +486,9 @@ COPY --link --from=nv-codec-headers {{ LibrariesPath }}/nv-codec-headers-cache / RUN git clone -b n6.1.1 --depth=1 {{ GIT }}/FFmpeg/FFmpeg.git \ && cd FFmpeg \ && ./configure \ - --extra-cflags="-DCONFIG_SAFE_BITSTREAM_READER=1" \ - --extra-cxxflags="-DCONFIG_SAFE_BITSTREAM_READER=1" \ + --extra-cflags="-fno-lto -DCONFIG_SAFE_BITSTREAM_READER=1" \ + --extra-cxxflags="-fno-lto -DCONFIG_SAFE_BITSTREAM_READER=1" \ --disable-debug \ - --disable-optimizations \ - --disable-inline-asm \ --disable-programs \ --disable-doc \ --disable-network \