[packages/xxHash] replace archcflags with speclfags_<arch>
atler
atler at pld-linux.org
Fri Jul 21 19:57:16 CEST 2023
commit b9afcf511e420b43282f450fd9eef0df0a0f6705
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Jul 21 19:35:28 2023 +0200
replace archcflags with speclfags_<arch>
xxHash.spec | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/xxHash.spec b/xxHash.spec
index d49467f..f385f0b 100644
--- a/xxHash.spec
+++ b/xxHash.spec
@@ -12,9 +12,7 @@ Patch0: man-symlinks.patch
URL: https://github.com/Cyan4973/xxHash
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%ifarch %{arm}
-%define archcflags -DXXH_FORCE_MEMORY_ACCESS=1
-%endif
+%define specflags_arm -DXXH_FORCE_MEMORY_ACCESS=1
%description
xxHash is an Extremely fast Hash algorithm, running at RAM speed
@@ -61,7 +59,7 @@ Statyczna biblioteka xxHash.
%build
CC="%{__cc}" \
CFLAGS="%{rpmcflags}" \
-CPPFLAGS="%{rpmcflags} %{?archcflags}" \
+CPPFLAGS="%{rpmcflags}" \
LDFLAGS="%{rpmldflags}" \
%{__make} \
prefix=%{_prefix} \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xxHash.git/commitdiff/00236a14933ccc4199734552eb0fc47c5ca4b92c
More information about the pld-cvs-commit
mailing list