From 079d890dfd09f5c175d05387c05bfdd7e47c66b4 Mon Sep 17 00:00:00 2001 From: SoonKyu Park Date: Wed, 24 Jan 2018 15:19:49 +0900 Subject: Enable Armoring Feature - Add pie option Change-Id: Iab46b1827bb37d14aaa8235cf992eb8fc2b3b564 --- packaging/rpm.spec | 4 ++-- 1 file 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 -- cgit v1.2.3