From 0043634bc30d5ec2d623f3ffa2dbdbd9305fad11 Mon Sep 17 00:00:00 2001 From: Myungki Lee Date: Tue, 5 Sep 2017 14:23:52 +0900 Subject: [PATCH] Apply ASLR to attr Change-Id: I61c90c3621156c7bdb6a649ef3bba02d18e8fe0a 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