Skip to content

Commit 7553970

Browse files
committed
Fix --gcc-install-dir
This should fix this error: ``` clang: error: '/opt/rh/gcc-toolset-14/root/usr' does not contain a GCC installation ```
1 parent 8451454 commit 7553970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ echo "%%clang%{maj_ver}_resource_dir %%{_prefix}/lib/clang/%{maj_ver}" >> %{buil
12901290
%endif
12911291

12921292
%if %{defined gts_version}
1293-
%global cfg_file_content %{cfg_file_content} --gcc-install-dir=/opt/rh/gcc-toolset-%{gts_version}/root/usr
1293+
%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}
12941294
%endif
12951295

12961296
mkdir -p %{buildroot}%{_sysconfdir}/%{pkg_name_clang}/

0 commit comments

Comments
 (0)