From 00243891cad11cd843a0672a2568a592bc60afed Mon Sep 17 00:00:00 2001 From: Igor Kotrasinski Date: Thu, 10 Aug 2017 11:18:39 +0200 Subject: [PATCH] Add PIE flags to make invocation Fixes xmlsec1 executable not building as PIE (for ASLR). Change-Id: Ibedf6507218d7523466dbd1aaef8388378f9631a Signed-off-by: Igor Kotrasinski --- packaging/xmlsec1.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packaging/xmlsec1.spec b/packaging/xmlsec1.spec index ddfd833..9289859 100644 --- a/packaging/xmlsec1.spec +++ b/packaging/xmlsec1.spec @@ -79,7 +79,10 @@ cp %{SOURCE1001} . --disable-apps-crypto-dl \ --without-gnutls -%__make %{?_smp_mflags} +%define cflags -fPIE +%define ldflags -pie + +%__make %{?_smp_mflags} CFLAGS="%{cflags}" LDFLAGS="%{ldflags}" %install %make_install -- 2.7.4