Fix rpm build warning/error: absolute symlink
I noticed that warnings and errors show up in the `RPM build errors:` output. When I produced an error I did see this warning about absolute symlink showing up: ``` absolute symlink: /usr/lib64/bfd-plugins/LLVMgold.so -> /usr/lib64/LLVMgold.so ``` The upstream RPM fix to log warnings and errors separately is here: https://github.com/rpm-software-management/rpm/pull/1590 Thanks to @sergesanspaille for the help.
This commit is contained in:
parent
6cee6aebe6
commit
5d9e2b66ed
@ -350,7 +350,7 @@ cp -R utils/UpdateTestChecks %{install_srcdir}/utils/
|
|||||||
%if %{with gold}
|
%if %{with gold}
|
||||||
# Add symlink to lto plugin in the binutils plugin directory.
|
# Add symlink to lto plugin in the binutils plugin directory.
|
||||||
%{__mkdir_p} %{buildroot}%{_libdir}/bfd-plugins/
|
%{__mkdir_p} %{buildroot}%{_libdir}/bfd-plugins/
|
||||||
ln -s %{_libdir}/LLVMgold.so %{buildroot}%{_libdir}/bfd-plugins/
|
ln -s -t %{buildroot}%{_libdir}/bfd-plugins/ ../LLVMgold.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%else
|
%else
|
||||||
|
Loading…
Reference in New Issue
Block a user