summaryrefslogtreecommitdiffstats
path: root/argon2.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-04-03 15:41:33 +0200
committerRemi Collet <remi@remirepo.net>2019-04-03 15:41:33 +0200
commit6fbc3a93e4cb581ffd66232e1b69560455e6d92b (patch)
treed82e0d268c76ff38965a383a80b8e8cfff4a904b /argon2.spec
parenta5f8f84fdca700b32402e2a7b0f3a1ae72a64efd (diff)
fix for EL-6HEADmaster
Diffstat (limited to 'argon2.spec')
-rw-r--r--argon2.spec2
1 files changed, 1 insertions, 1 deletions
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} :' \