From 58fa1693f75e7c2bbf4fe4854214bbbda6a527ab Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Mon, 11 Apr 2016 13:28:46 -0400 Subject: [PATCH] Set LDFLAGS for hardened builds (#1289728) Without LDFLAGS the git exectuables were not being linked with the desired settings for hardened builds. --- git.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/git.spec b/git.spec index 01948ad..bf01642 100644 --- a/git.spec +++ b/git.spec @@ -50,7 +50,7 @@ Name: git Version: 2.8.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Fast Version Control System License: GPLv2 Group: Development/Tools @@ -385,6 +385,7 @@ find prebuilt_docs/html -type d | xargs rmdir --ignore-fail-on-non-empty cat << \EOF > config.mak V = 1 CFLAGS = %{optflags} +LDFLAGS = %{__global_ldflags} BLK_SHA1 = 1 NEEDS_CRYPTO_WITH_SSL = 1 USE_LIBPCRE = 1 @@ -729,6 +730,9 @@ rm -rf %{buildroot} # No files for you! %changelog +* Mon Apr 11 2016 Todd Zullinger - - 2.8.1-3 +- Set LDFLAGS for hardened builds (#1289728) + * Wed Apr 06 2016 Paolo Bonzini - 2.8.1-2 - Install git-credentials-netrc (#1303358)