mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-24 09:32:42 +00:00
Fix binary symlinks
This commit is contained in:
parent
e481d54052
commit
b99883cb6f
1 changed files with 12 additions and 9 deletions
|
@ -45,15 +45,6 @@ ln -s -t %{buildroot}%{_libdir}/bfd-plugins/ ../LLVMgold.so
|
||||||
|
|
||||||
%else
|
%else
|
||||||
|
|
||||||
# Add version suffix to binaries
|
|
||||||
for f in %{buildroot}/%{install_bindir}/*; do
|
|
||||||
filename=`basename $f`
|
|
||||||
if echo $filename | grep -e '%{maj_ver}'; then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
ln -s ../../%{install_bindir}/$filename %{buildroot}/%{_bindir}/$filename%{exec_suffix}
|
|
||||||
done
|
|
||||||
|
|
||||||
# Create ld.so.conf.d entry
|
# Create ld.so.conf.d entry
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
||||||
cat >> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{pkg_name_llvm}-%{_arch}.conf << EOF
|
cat >> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{pkg_name_llvm}-%{_arch}.conf << EOF
|
||||||
|
@ -277,3 +268,15 @@ ln -vsf "../../../${liblldb}" %{buildroot}%{python3_sitearch}/lldb/_lldb.so
|
||||||
rm -f %{buildroot}%{python3_sitearch}/six.*
|
rm -f %{buildroot}%{python3_sitearch}/six.*
|
||||||
%endif
|
%endif
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
%if %{with compat_build}
|
||||||
|
# Add version suffix to binaries. Do this at the end so it includes any
|
||||||
|
# additional binaries that may be been added by other steps.
|
||||||
|
for f in %{buildroot}/%{install_bindir}/*; do
|
||||||
|
filename=`basename $f`
|
||||||
|
if echo $filename | grep -e '%{maj_ver}'; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
ln -s ../../%{install_bindir}/$filename %{buildroot}/%{_bindir}/$filename%{exec_suffix}
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
|
Loading…
Reference in a new issue