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:
parent
5197c0ae27
commit
1b6d3f3740
@ -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
|
%multilib_fix_c_header --file %{install_includedir}/llvm/Config/llvm-config.h
|
||||||
|
|
||||||
# Create ld.so.conf.d entry
|
# Create ld.so.conf.d entry
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||||
cat >> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf << EOF
|
cat >> %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf << EOF
|
||||||
%{install_libdir}
|
%{install_libdir}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -536,7 +536,7 @@ fi
|
|||||||
%{_libdir}/libLLVM-%{maj_ver}.%{min_ver}*.so
|
%{_libdir}/libLLVM-%{maj_ver}.%{min_ver}*.so
|
||||||
%{_libdir}/libLTO.so*
|
%{_libdir}/libLTO.so*
|
||||||
%else
|
%else
|
||||||
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
|
%config(noreplace) /etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
%if %{with gold}
|
%if %{with gold}
|
||||||
%{_libdir}/%{name}/lib/LLVMgold.so
|
%{_libdir}/%{name}/lib/LLVMgold.so
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user