summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoonKyu Park <sk7.park@samsung.com>2018-01-24 15:19:49 +0900
committerSoonKyu Park <sk7.park@samsung.com>2018-01-24 15:19:49 +0900
commit079d890dfd09f5c175d05387c05bfdd7e47c66b4 (patch)
tree8c2761b908be9d687adaa2510f588869be2009b9
parentc6cd28984ab2ca8fc08c59ccac9d5aa7cab7c404 (diff)
downloadrpm-079d890dfd09f5c175d05387c05bfdd7e47c66b4.tar.gz
rpm-079d890dfd09f5c175d05387c05bfdd7e47c66b4.tar.bz2
rpm-079d890dfd09f5c175d05387c05bfdd7e47c66b4.zip
Enable Armoring Feature - Add pie optionsubmit/tizen_base/20180124.070639
Change-Id: Iab46b1827bb37d14aaa8235cf992eb8fc2b3b564
-rw-r--r--packaging/rpm.spec4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/rpm.spec b/packaging/rpm.spec
index 4897db8a1..5463a376b 100644
--- a/packaging/rpm.spec
+++ b/packaging/rpm.spec
@@ -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