From 3708fff09115a4767fe5b0a7a32a6fcab9a85ef8 Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Mon, 15 Aug 2016 15:30:02 +0200 Subject: [PATCH] specfile: Use the hardened build explicitly (-fPIC / -fPIE) --- tcsh.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tcsh.spec b/tcsh.spec index befb27d..c0640fe 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -20,6 +20,16 @@ BuildRequires: gettext-devel BuildRequires: git BuildRequires: ncurses-devel +# GLOBAL MACROS: +# -------------- + +# Some people use tcsh as their login shell, which might be long running. +# Koji should override the compilation flags and add the -fPIC or -fPIE flags by +# default. This is here just in case - for some unexpected resons. +# For more info: https://fedoraproject.org/wiki/Packaging:Guidelines#PIE +%global _hardened_build 1 + +# ============================================================================= # NOTE: 'autosetup' macro (below) uses 'git' for applying the patches: # ->> All the patches should be provided in 'git format-patch' format.