diff --git a/bash.spec b/bash.spec index 79f4ad5ec1218c36fe98a87cfa4dd6b41e37f14a..34466a2c8b2ad9e90b54e0f07e0603f5bb69080f 100644 --- a/bash.spec +++ b/bash.spec @@ -1,7 +1,7 @@ %global ENABLE_RELOC 1 %if %{ENABLE_RELOC} -%global ldflags_options -Wl,--emit-relocs +%global ldflags_options -Wl,--emit-relocs,-pie %endif Name: bash @@ -96,7 +96,8 @@ install -pDm 644 %SOURCE2 %{buildroot}/etc/skel/.bash_profile install -pDm 644 %SOURCE3 %{buildroot}/etc/skel/.bash_logout install -pDm 644 ./configs/alias.sh %{buildroot}%{_sysconfdir}/profile.d/alias.sh %if %{?ENABLE_RELOC} -install -pD $RPM_BUILD_DIR/%{name}-%{version}/bash.relocation %{buildroot}%{_bindir}/bash.relocation +mkdir -p ${RPM_BUILD_ROOT}/usr/lib/relocation%{_libdir} +install -pD $RPM_BUILD_DIR/%{name}-%{version}/bash.relocation ${RPM_BUILD_ROOT}/usr/lib/relocation%{_libdir} %endif # bug #820192, need to add execable alternatives for regular built-ins @@ -126,7 +127,7 @@ make check %files relocation %defattr(400,root,root,-) %dir %attr(500, root, root) %{_bindir} -%attr(400, root, root) %{_bindir}/bash.relocation +%attr(400, root, root) /usr/lib/relocation%{_libdir}/bash.relocation %endif %files devel