Enable Armoring Feature - Add pie option 94/168094/1 submit/tizen_base/20180124.070639
authorSoonKyu Park <sk7.park@samsung.com>
Wed, 24 Jan 2018 06:19:49 +0000 (15:19 +0900)
committerSoonKyu Park <sk7.park@samsung.com>
Wed, 24 Jan 2018 06:19:49 +0000 (15:19 +0900)
Change-Id: Iab46b1827bb37d14aaa8235cf992eb8fc2b3b564

packaging/rpm.spec

index 4897db8..5463a37 100644 (file)
@@ -145,8 +145,8 @@ rm -f m4/lt*.m4
 %build
 CPPFLAGS="$CPPFLAGS `pkg-config --cflags nss`"
 export CPPFLAGS
-export CFLAGS="%{optflags} -ffunction-sections"
-export LDFLAGS="${LDFLAGS} -Wl,-Bsymbolic-functions -ffunction-sections"
+export CFLAGS="%{optflags} -ffunction-sections -fPIE"
+export LDFLAGS="${LDFLAGS} -pie -Wl,-Bsymbolic-functions -ffunction-sections"
 %ifarch armv5tel
 export CFLAGS="-g -O0 -fno-strict-aliasing -ffunction-sections"
 %endif