diff options
author | Igor Kotrasinski <i.kotrasinsk@partner.samsung.com> | 2017-08-10 12:04:07 +0200 |
---|---|---|
committer | Igor Kotrasinski <i.kotrasinsk@partner.samsung.com> | 2017-08-10 12:16:47 +0200 |
commit | 1d271280336009ce0f31ce283975b030e74387c5 (patch) | |
tree | 861640335a2eb5c1d176badd9b5a8a06cb5dc5c9 | |
parent | f87d0bbbb96f9df93f59ce9e309260439627c2c8 (diff) | |
download | openssl-1d271280336009ce0f31ce283975b030e74387c5.tar.gz openssl-1d271280336009ce0f31ce283975b030e74387c5.tar.bz2 openssl-1d271280336009ce0f31ce283975b030e74387c5.zip |
Add PIE flags to configsubmit/tizen_base/20170810.110044
Add flags for Configure script, as it passes them down to compiler and
linker. Fixes openssl binary not building as PIE (for ASLR).
Change-Id: Iaac6de23c28809aed8d5c92e85e5ef56e12b56b1
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
-rw-r--r-- | packaging/openssl.spec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/openssl.spec b/packaging/openssl.spec index d3fa9a8..bb4df7f 100644 --- a/packaging/openssl.spec +++ b/packaging/openssl.spec @@ -100,7 +100,7 @@ RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed -s "s/-march=armv7ve/-march=armv7-a/g" CONFIG_FLAGS="--prefix=%_prefix --openssldir=%openssldir --libdir=%_lib \ threads shared no-idea no-rc5 no-camellia no-asm no-ssl2-method enable-md2 \ - $RPM_OPT_FLAGS -std=gnu99" + $RPM_OPT_FLAGS -std=gnu99 -fPIE -pie" BINARY_FORMAT= %ifarch %{arm} |