From 1b6d3f37400a2f5f308f85f431a0a9758f302de7 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Thu, 28 Sep 2023 11:30:25 -0300 Subject: [PATCH] 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. --- llvm.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm.spec b/llvm.spec index a24df4a..c31b61b 100644 --- a/llvm.spec +++ b/llvm.spec @@ -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