From f75650abdf993010ac84df6fdef5d122c5625a8a Mon Sep 17 00:00:00 2001 From: jchzhou Date: Mon, 26 Aug 2024 15:40:13 +0800 Subject: [PATCH] add options during configure for supporting building with clang (cherry picked from commit 3280fd2898a29f32b0915cf87ba6d8bc5dca4d87) --- ffmpeg.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ffmpeg.spec b/ffmpeg.spec index bf53394..83a049a 100644 --- a/ffmpeg.spec +++ b/ffmpeg.spec @@ -55,10 +55,14 @@ %global ffmpeg_license %{?lesser}GPLv2+ %endif +%if "%{?toolchain}" == "clang" +%bcond compiler_clang 1 +%endif + Summary: Digital VCR and streaming server Name: ffmpeg%{?flavor} Version: 6.1.1 -Release: 11 +Release: 12 License: GPL-3.0-or-later URL: http://ffmpeg.org/ Source0: http://ffmpeg.org/releases/ffmpeg-%{version}.tar.xz @@ -291,7 +295,8 @@ This package contains development files for %{name} --enable-shared \\\ %{!?_without_gpl:--enable-gpl} \\\ --disable-debug \\\ - --disable-stripping + --disable-stripping \\\ + %{?with_compiler_clang:--cc=clang --cxx=clang --host-cc=clang} %prep @@ -400,6 +405,9 @@ install -pm755 tools/qt-faststart %{buildroot}%{_bindir} %changelog +* Mon Aug 26 2024 jchzhou - 6.1.1-12 +- add options during configure for supporting building with clang + * Fri Jul 5 2024 happyworker <208suo@208suo.com> - 6.1.1-11 - remove fix-CVE-2024-32228.patch