diff --git a/git.spec b/git.spec index 51b73db..088262a 100644 --- a/git.spec +++ b/git.spec @@ -42,6 +42,11 @@ %global use_systemd 0 %endif +# Settings for EL <= 7 +%if 0%{?rhel} && 0%{?rhel} <= 7 +%{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro} +%endif + Name: git Version: 2.7.4 Release: 2%{?dist} @@ -688,7 +693,9 @@ rm -rf %{buildroot} %changelog * Fri Jul 01 2016 Petr Stodulka - 2.7.4-2 -- Set LDFLAGS for hardened builds (#1289728) (thanks Todd) +- Set LDFLAGS for hardened builds (#1289728) + and define __global_ldflags on EL < 7 (#1337137) + (Thanks Todd) * Fri Mar 18 2016 David Woodhouse - 2.7.4-1 - Update to 2.7.4 (for CVE-2016-2315, CVE-2016-2324)