summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Broz <gmazyland@gmail.com>2017-11-16 13:38:54 +0100
committerRemi Collet <remi@remirepo.net>2017-11-16 14:10:59 +0100
commit2f275b1c22d92456ee811e2c3358388d09c497f8 (patch)
tree0c069bb3f7f156a96615826d332375b6e6d2fbcc
parent69fc25a0f28cd826e364e0464e24d499c9a91755 (diff)
Do not use -march=native in build, use system flags (rh #1512845).
-rw-r--r--argon2.spec9
1 files changed, 7 insertions, 2 deletions
diff --git a/argon2.spec b/argon2.spec
index e385f85..b94bfe5 100644
--- a/argon2.spec
+++ b/argon2.spec
@@ -18,7 +18,7 @@
Name: argon2
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
-Release: 1%{?dist}
+Release: 2%{?dist}
Group: Applications/System
Summary: The password-hashing tools
@@ -85,9 +85,11 @@ fi
# Fix pkgconfig file
sed -e 's:lib/@HOST_MULTIARCH@:%{_lib}:;s/@UPSTREAM_VER@/%{version}/' -i %{libname}.pc
-# Honours default RPM build options and library path
+# Honours default RPM build options and library path, do not use -march=native
sed -e 's:-O3 -Wall:%{optflags}:' \
-e '/^LIBRARY_REL/s:lib:%{_lib}:' \
+ -e 's:-march=\$(OPTTARGET) :${CFLAGS} :' \
+ -e 's:CFLAGS += -march=\$(OPTTARGET)::' \
-i Makefile
%build
@@ -136,5 +138,8 @@ make test
%changelog
+* Thu Nov 16 2017 Milan Broz <gmazyland@gmail.com> - 20161029-2
+- Do not use -march=native in build, use system flags (rh #1512845).
+
* Wed Oct 18 2017 Remi Collet <remi@remirepo.net> - 20161029-1
- initial package