diff options
author | Igor Kotrasinski <i.kotrasinsk@partner.samsung.com> | 2017-08-10 11:18:39 +0200 |
---|---|---|
committer | Igor Kotrasinski <i.kotrasinsk@partner.samsung.com> | 2017-08-10 11:18:39 +0200 |
commit | 00243891cad11cd843a0672a2568a592bc60afed (patch) | |
tree | 7ab4fe49e338e6127ff5c61b03a4084c3a73167f | |
parent | 80352ee161fb86501c2543be4d3bad185fda4f22 (diff) | |
download | xmlsec1-00243891cad11cd843a0672a2568a592bc60afed.tar.gz xmlsec1-00243891cad11cd843a0672a2568a592bc60afed.tar.bz2 xmlsec1-00243891cad11cd843a0672a2568a592bc60afed.zip |
Add PIE flags to make invocationtizen_4.0.m2_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_4.0/20170828.100007submit/tizen/20170810.110102accepted/tizen/unified/20170810.172603accepted/tizen/4.0/unified/20170828.221840tizen_4.0_tvtizen_4.0accepted/tizen_4.0_unified
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.spec | 5 |
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 |