Enable ASLR/DEP feature 23/135123/2
authorYunmi Ha <yunmi.ha@samsung.com>
Wed, 21 Jun 2017 04:38:45 +0000 (13:38 +0900)
committerYunmi Ha <yunmi.ha@samsung.com>
Wed, 21 Jun 2017 05:00:03 +0000 (14:00 +0900)
Change-Id: Ie191c0ca235d10481e7af6e063711500387d9589
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
packaging/e2fsprogs.spec

index 3cee10f..5675fe5 100755 (executable)
@@ -74,6 +74,8 @@ cp %{SOURCE1001} .
 
 %build
 %{?asan:%restore_fcommon}
+export CFLAGS="${CFLAGS} -fPIE"
+export LDFLAGS="${LDFLAGS} -pie"
 %configure \
   --disable-evms \
   --with-root-prefix=''   \
@@ -83,7 +85,7 @@ cp %{SOURCE1001} .
   --disable-uuidd \
   --disable-nls \
   --disable-fsck \
-  CFLAGS="$RPM_OPT_FLAGS"
+
 make %{?_smp_mflags} V=1
 
 %install