Change-Id: I61c90c3621156c7bdb6a649ef3bba02d18e8fe0a
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
cp %{SOURCE1001} .
%build
-export OPTIMIZER="$RPM_OPT_FLAGS -fPIC"
+export OPTIMIZER="$RPM_OPT_FLAGS"
export DEBUG=-DNDEBUG
CFLAGS="$RPM_OPT_FLAGS" \
%configure \
--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"