From b66165f4970fb9fe7c2a73dec91d0d5b379d7fde Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Wed, 13 Nov 2024 10:51:18 +0100 Subject: [PATCH] Fix --gcc-install-dir This should fix this error: ``` clang: error: '/opt/rh/gcc-toolset-14/root/usr' does not contain a GCC installation ``` --- llvm.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index eb86fdd..53c3134 100644 --- a/llvm.spec +++ b/llvm.spec @@ -1290,7 +1290,7 @@ echo "%%clang%{maj_ver}_resource_dir %%{_prefix}/lib/clang/%{maj_ver}" >> %{buil %endif %if %{defined gts_version} -%global cfg_file_content %{cfg_file_content} --gcc-install-dir=/opt/rh/gcc-toolset-%{gts_version}/root/usr +%global cfg_file_content %{cfg_file_content} --gcc-install-dir=/opt/rh/gcc-toolset-%{gts_version}/root/%{_exec_prefix}/lib/gcc/%{_target_cpu}-redhat-linux/%{gts_version} %endif mkdir -p %{buildroot}%{_sysconfdir}/%{pkg_name_clang}/