From 6fbc3a93e4cb581ffd66232e1b69560455e6d92b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 3 Apr 2019 15:41:33 +0200 Subject: fix for EL-6 --- argon2.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/argon2.spec b/argon2.spec index adae23e..41e8e10 100644 --- a/argon2.spec +++ b/argon2.spec @@ -86,7 +86,7 @@ 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 '/^CFLAGS/s:^CFLAGS:LDFLAGS=%{build_ldflags}\nCFLAGS:' \ +sed %{?build_ldflags:-e '/^CFLAGS/s:^CFLAGS:LDFLAGS=%{build_ldflags}\nCFLAGS:'} \ -e 's:-O3 -Wall:%{optflags}:' \ -e '/^LIBRARY_REL/s:lib:%{_lib}:' \ -e 's:-march=\$(OPTTARGET) :${CFLAGS} :' \ -- cgit