diff options
author | Abhishek Sansanwal <abhishek.s94@samsung.com> | 2018-01-22 14:57:02 +0530 |
---|---|---|
committer | taesub kim <taesub.kim@samsung.com> | 2018-01-23 10:14:45 +0900 |
commit | 7101bb1de6d1a1cafbdfac69d932e0356c1be6b1 (patch) | |
tree | 06d64651c6d8c30fc754ef98a91f8671a9b09ceb | |
parent | 3e6ec9ddc75f931f84b71e1a0386af733759f53f (diff) | |
download | curl-7101bb1de6d1a1cafbdfac69d932e0356c1be6b1.tar.gz curl-7101bb1de6d1a1cafbdfac69d932e0356c1be6b1.tar.bz2 curl-7101bb1de6d1a1cafbdfac69d932e0356c1be6b1.zip |
Added hardening compiler flags in the spec file.submit/tizen_4.0/20180123.012429
Description: Enabled stack protector, relro, PIE,
fortify source and other flags
Change-Id: I2e569da65cec7120f8ed250a06808f5efb408eb9
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
-rw-r--r-- | packaging/curl.spec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/curl.spec b/packaging/curl.spec index 1239127b0..bb36ac813 100644 --- a/packaging/curl.spec +++ b/packaging/curl.spec @@ -70,7 +70,7 @@ cp %{SOURCE1001} . %build export CPPFLAGS="-DHAVE_PK11_CREATEGENERICOBJECT" - +CFLAGS+=" -fstack-protector-strong -Wl,-z,relro -D_FORTIFY_SOURCE=2 -fPIE -pie" %if "%{TIZEN_PROFILE_TV}" == "1" CFLAGS+=" -DTIZEN_TV_EXT" %reconfigure --without-nss --without-gnutls --with-openssl --disable-ipv6 \ |