summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Kotrasinski <i.kotrasinsk@partner.samsung.com>2017-08-10 09:18:39 (GMT)
committerIgor Kotrasinski <i.kotrasinsk@partner.samsung.com>2017-08-10 09:18:39 (GMT)
commit00243891cad11cd843a0672a2568a592bc60afed (patch)
tree7ab4fe49e338e6127ff5c61b03a4084c3a73167f
parent80352ee161fb86501c2543be4d3bad185fda4f22 (diff)
downloadxmlsec1-00243891cad11cd843a0672a2568a592bc60afed.zip
xmlsec1-00243891cad11cd843a0672a2568a592bc60afed.tar.gz
xmlsec1-00243891cad11cd843a0672a2568a592bc60afed.tar.bz2
Fixes xmlsec1 executable not building as PIE (for ASLR). Change-Id: Ibedf6507218d7523466dbd1aaef8388378f9631a Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
-rw-r--r--packaging/xmlsec1.spec5
1 files changed, 4 insertions, 1 deletions
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