[packages/ffms2] on armv6 needs linking with libatomic

atler atler at pld-linux.org
Sun Dec 19 13:39:44 CET 2021


commit a31926a4c2405c233c43f18a6240cfbc5434931e
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Dec 19 13:39:17 2021 +0100

    on armv6 needs linking with libatomic

 ffms2.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/ffms2.spec b/ffms2.spec
index 373d5bf..ab4cb19 100644
--- a/ffms2.spec
+++ b/ffms2.spec
@@ -20,10 +20,13 @@ BuildRequires:	automake >= 1:1.11
 BuildRequires:	ffmpeg-devel >= 0.9
 # libavresample >= 1.0.0 or libswresample >= 1.0.0
 %{?with_avresample:BuildRequires:	ffmpeg-devel >= 1.1}
+%ifarch %{armv6}
+BuildRequires:	libatomic-devel
+%endif
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtool >= 2:2.0
 BuildRequires:	pkgconfig >= 1:0.22
-BuildRequires:	rpmbuild(macros) >= 1.566
+BuildRequires:	rpmbuild(macros) >= 2.007
 BuildRequires:	sed >= 4.0
 BuildRequires:	zlib-devel
 Obsoletes:	ffmpegsource < 2.20
@@ -95,6 +98,9 @@ CXXFLAGS="%{rpmcxxflags} -Wall -Wextra"
 %{__autoheader}
 %{__automake}
 %configure \
+%ifarch %{armv6}
+	LIBS=-latomic \
+%endif
 	--enable-avresample%{!?with_avresample:=no} \
 	--disable-silent-rules \
 	--enable-shared \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ffms2.git/commitdiff/a31926a4c2405c233c43f18a6240cfbc5434931e



More information about the pld-cvs-commit mailing list