Fix ld.so.conf.d path

This location is hard-coded by glibc and is not prefix-variable.  This
fixes flatpak app RPM builds of clang15 and packages dependent thereon
(e.g. openshadinglanguage).  Flatpaks using these packages will still
need to define LD_LIBRARY_PATH.
This commit is contained in:
Yaakov Selkowitz 2023-09-28 11:30:25 -03:00 committed by Tulio Magno Quites Machado Filho
parent 5197c0ae27
commit 1b6d3f3740
1 changed files with 3 additions and 3 deletions

View File

@ -420,8 +420,8 @@ ln -s ../../../%{install_includedir}/llvm-c %{buildroot}/%{pkg_includedir}/llvm-
%multilib_fix_c_header --file %{install_includedir}/llvm/Config/llvm-config.h
# Create ld.so.conf.d entry
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
cat >> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf << EOF
mkdir -p %{buildroot}/etc/ld.so.conf.d
cat >> %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf << EOF
%{install_libdir}
EOF
@ -536,7 +536,7 @@ fi
%{_libdir}/libLLVM-%{maj_ver}.%{min_ver}*.so
%{_libdir}/libLTO.so*
%else
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
%config(noreplace) /etc/ld.so.conf.d/%{name}-%{_arch}.conf
%if %{with gold}
%{_libdir}/%{name}/lib/LLVMgold.so
%endif