Added hardening compiler flags in the spec file. 43/167843/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.024506 accepted/tizen/unified/20180126.042837 submit/tizen/20180123.012239 submit/tizen/20180124.050653 submit/tizen/20180125.065647 submit/tizen_4.0/20180123.012429 submit/tizen_4.0/20180124.050820 submit/tizen_5.0/20181101.000006
authorAbhishek Sansanwal <abhishek.s94@samsung.com>
Mon, 22 Jan 2018 09:39:54 +0000 (15:09 +0530)
committerAbhishek Sansanwal <abhishek.s94@samsung.com>
Mon, 22 Jan 2018 09:39:54 +0000 (15:09 +0530)
Description: Enabled stack protector, relro, PIE,
fortify source and other flags

Change-Id: Idc6ec2d9674492a666197369b998435744cdc8a1
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
packaging/glib-networking.spec

index 3d1c0c3..7bba149 100755 (executable)
@@ -35,7 +35,7 @@ Currently, there is only a proxy module based on libproxy.
 cp %{SOURCE1001} .
 
 %build
-export CFLAGS='-Wformat-nonliteral'
+export CFLAGS='-Wformat-nonliteral -fstack-protector-strong -Wl,-z,relro -D_FORTIFY_SOURCE=2 -fPIE -pie'
 %autogen \
     --disable-static \
 %if %{with libproxy}