[packages/apr] link libatomic on arm < armv7
atler
atler at pld-linux.org
Sat Apr 1 23:42:55 CEST 2023
commit 03334729bef7fc6ec536c961ad349a2bb0e57c53
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Apr 1 23:32:26 2023 +0200
link libatomic on arm < armv7
apr.spec | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/apr.spec b/apr.spec
index 8a88f99..3e8b79c 100644
--- a/apr.spec
+++ b/apr.spec
@@ -25,10 +25,14 @@ BuildRequires: libtool >= 2:2.2
%else
BuildRequires: libtool
%endif
+%ifarch armv3l %{armv4} %{armv5} %{armv6}
+BuildRequires: libatomic-devel
+%endif
BuildRequires: libuuid-devel
BuildRequires: python
BuildRequires: rpm >= 4.4.9-56
BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.007
BuildRequires: sed >= 4.0
%if "%{pld_release}" != "ac"
BuildRequires: uname(release) >= 2.6
@@ -118,6 +122,9 @@ install /usr/share/automake/config.* build
%{__autoconf}
%configure \
+%ifarch armv3l %{armv4} %{armv5} %{armv6}
+ LIBS="-latomic" \
+%endif
--enable-layout=PLD \
%ifarch %{ix86} %{x8664}
%ifnarch i386
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/apr.git/commitdiff/8af7f5ca63f4b373dfc8b16059ebaed2986e2789
More information about the pld-cvs-commit
mailing list