[packages/musl] customize musl_arch for armhf

atler atler at pld-linux.org
Wed Jun 15 18:50:55 CEST 2022


commit 3299fac2ab58fc8da4039299c8db0f32d3b4ece4
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Jun 15 18:49:08 2022 +0200

    customize musl_arch for armhf

 musl.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/musl.spec b/musl.spec
index cf7fa3e..0096a05 100644
--- a/musl.spec
+++ b/musl.spec
@@ -10,6 +10,7 @@ Source0:	http://www.musl-libc.org/releases/%{name}-%{version}.tar.gz
 Patch0:		%{name}-gcc.patch
 URL:		http://www.musl-libc.org/
 BuildRequires:	gcc >= 5:3.2
+BuildRequires:	rpmbuild(macros) >= 2.007
 BuildRequires:	zlib-devel
 Requires:	uname(release) >= 2.6.0
 ExclusiveArch:	%{ix86} %{x8664} x32 %{arm} aarch64 mips microblaze ppc
@@ -24,7 +25,11 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 # i386, x86_64, x32, arm, mips, microblaze, ppc
 %ifarch x32
 %define		musl_arch	x32
-%else
+%endif
+%ifarch %{arm32_with_hf}
+%define		musl_arch	armhf
+%endif
+%ifnarch x32 %{arm32_with_hf}
 %define		musl_arch	%{_target_base_arch}
 %endif
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/musl.git/commitdiff/6c06972649c4043c449c13b8a544976458373043



More information about the pld-cvs-commit mailing list