From a65cc9516cbcd51498b102bdd32f6d11168f6212 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 20 Mar 2018 14:15:15 +0100 Subject: [PATCH] honours all build flags #1558128 --- argon2.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/argon2.spec b/argon2.spec index e37657d..335627e 100644 --- a/argon2.spec +++ b/argon2.spec @@ -18,7 +18,7 @@ Name: argon2 Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 4%{?dist} +Release: 5%{?dist} Group: Applications/System Summary: The password-hashing tools @@ -86,7 +86,8 @@ fi sed -e 's:lib/@HOST_MULTIARCH@:%{_lib}:;s/@UPSTREAM_VER@/%{version}/' -i %{libname}.pc # Honours default RPM build options and library path, do not use -march=native -sed -e 's:-O3 -Wall:%{optflags}:' \ +sed -e '/^CFLAGS/s:^CFLAGS:LDFLAGS=%{build_ldflags}\nCFLAGS:' \ + -e 's:-O3 -Wall:%{optflags}:' \ -e '/^LIBRARY_REL/s:lib:%{_lib}:' \ -e 's:-march=\$(OPTTARGET) :${CFLAGS} :' \ -e 's:CFLAGS += -march=\$(OPTTARGET)::' \ @@ -134,6 +135,9 @@ make test %changelog +* Thu Feb 15 2018 Remi Collet - 20161029-5 +- honours all build flags #1558128 + * Thu Feb 15 2018 Remi Collet - 20161029-4 - drop ldconfig scriptlets