[packages/xxHash] on %{arm} prefer memory access compatibility over performance
atler
atler at pld-linux.org
Sat Jan 30 18:05:18 CET 2021
commit 1d2c2db59e615004e234df3e62a1a7f51745f024
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Jan 30 18:03:43 2021 +0100
on %{arm} prefer memory access compatibility over performance
library built for armv6 crashes with bus error if ran on armv8.
check xxhash.h for more info
xxHash.spec | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/xxHash.spec b/xxHash.spec
index b0588b4..0d740c1 100644
--- a/xxHash.spec
+++ b/xxHash.spec
@@ -12,6 +12,10 @@ Patch0: %{name}-pc.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
+
%description
xxHash is an Extremely fast Hash algorithm, running at RAM speed
limits. It successfully completes the SMHasher test suite which
@@ -56,7 +60,7 @@ Statyczna biblioteka xxHash.
%build
CFLAGS="%{rpmcflags}" \
-CPPFLAGS="%{rpmcflags}" \
+CPPFLAGS="%{rpmcflags} %{?archcflags}" \
LDFLAGS="%{rpmldflags}" \
%{__make} \
prefix=%{_prefix} \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xxHash.git/commitdiff/1d2c2db59e615004e234df3e62a1a7f51745f024
More information about the pld-cvs-commit
mailing list