[Model] All
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A
[Problem] not adjust relro compile option
[Cause & Measure] add relro compile option at spec file
[Checking Method]
[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A
Change-Id: I251b28e52cb7675f4afa669f47e7556f2ad2a755
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
%build
export OPTIMIZER="$RPM_OPT_FLAGS"
export DEBUG=-DNDEBUG
-CFLAGS="$RPM_OPT_FLAGS" \
+export CFLAGS="$RPM_OPT_FLAGS -fPIC"
+export LDFLAGS="${LDFLAGS} -Wl,-z,relro -pie"
+
%configure \
--prefix=/ \
--enable-gettext=no \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--with-pic
+
%{__make} libattr %{?_smp_mflags}
-CFLAGS="$CFLAGS -fPIE" LDFLAGS="$LDFLAGS -pie" \
%{__make} attr getfattr setfattr %{?_smp_mflags}
%install