specfile: Use the hardened build explicitly (-fPIC / -fPIE)

This commit is contained in:
David Kaspar [Dee'Kej] 2016-08-15 15:30:02 +02:00
parent 4a1d3e4302
commit 3708fff091

View File

@ -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.