From cf75bd1daf3236aa4b1408aff3aafddc949f8589 Mon Sep 17 00:00:00 2001 From: Myungki Lee Date: Wed, 9 Aug 2017 17:59:49 +0900 Subject: [PATCH] Apply ASLR to attr Change-Id: I0f5ed701537f6a79d4ef0373c9ad89c1811637cc Signed-off-by: Myungki Lee --- packaging/attr.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packaging/attr.spec b/packaging/attr.spec index 4b123b6..809726e 100644 --- a/packaging/attr.spec +++ b/packaging/attr.spec @@ -55,7 +55,7 @@ statically linked programs which make use of extended attributes. cp %{SOURCE1001} . %build -export OPTIMIZER="$RPM_OPT_FLAGS -fPIC" +export OPTIMIZER="$RPM_OPT_FLAGS" export DEBUG=-DNDEBUG CFLAGS="$RPM_OPT_FLAGS" \ %configure \ @@ -66,7 +66,9 @@ CFLAGS="$RPM_OPT_FLAGS" \ --libdir=%{_libdir} \ --libexecdir=%{_libdir} \ --with-pic -%{__make} %{?_smp_mflags} +%{__make} libattr %{?_smp_mflags} +CFLAGS="$CFLAGS -fPIE" LDFLAGS="$LDFLAGS -pie" \ +%{__make} attr getfattr setfattr %{?_smp_mflags} %install DIST_ROOT="$RPM_BUILD_ROOT" -- 2.7.4