summaryrefslogtreecommitdiff
path: root/packaging/xmlsec1.spec
diff options
context:
space:
mode:
authorIgor Kotrasinski <i.kotrasinsk@partner.samsung.com>2017-08-10 11:18:39 +0200
committerIgor Kotrasinski <i.kotrasinsk@partner.samsung.com>2017-08-10 11:18:39 +0200
commit00243891cad11cd843a0672a2568a592bc60afed (patch)
tree7ab4fe49e338e6127ff5c61b03a4084c3a73167f /packaging/xmlsec1.spec
parent80352ee161fb86501c2543be4d3bad185fda4f22 (diff)
downloadxmlsec1-00243891cad11cd843a0672a2568a592bc60afed.tar.gz
xmlsec1-00243891cad11cd843a0672a2568a592bc60afed.tar.bz2
xmlsec1-00243891cad11cd843a0672a2568a592bc60afed.zip
Fixes xmlsec1 executable not building as PIE (for ASLR). Change-Id: Ibedf6507218d7523466dbd1aaef8388378f9631a Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Diffstat (limited to 'packaging/xmlsec1.spec')
-rw-r--r--packaging/xmlsec1.spec5
1 files changed, 4 insertions, 1 deletions
diff --git a/packaging/xmlsec1.spec b/packaging/xmlsec1.spec
index ddfd833b..9289859e 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