Restore DWARF 4 config file for Fedora 38

This is a port of 74b8bb0397
This commit is contained in:
Nikita Popov 2024-01-22 14:03:22 +00:00 committed by Konrad Kleine
parent d168c1664f
commit af9b9d6da4
3 changed files with 8 additions and 0 deletions

3
clang.cfg Normal file
View file

@ -0,0 +1,3 @@
# Drop the following option after debugedit adds support to DWARF-5:
# https://sourceware.org/bugzilla/show_bug.cgi?id=28728
-gdwarf-4

View file

@ -126,6 +126,9 @@
%files -n %{pkg_name_clang}-libs %files -n %{pkg_name_clang}-libs
%{install_prefix}/lib/clang/%{maj_ver}/include/* %{install_prefix}/lib/clang/%{maj_ver}/include/*
%{install_libdir}/*.so.* %{install_libdir}/*.so.*
%if 0%{?fedora} == 38
%{_sysconfdir}/%{name}/%{_target_platform}.cfg
%endif
%files -n %{pkg_name_clang}-devel %files -n %{pkg_name_clang}-devel
%if %{without compat_build} %if %{without compat_build}

View file

@ -10,6 +10,8 @@ Source1006: release-keys.asc
Source2005: macros.%{pkg_name_clang} Source2005: macros.%{pkg_name_clang}
%endif %endif
Source2006: clang.cfg
# Sources we use to split up the main spec file in sections so that we can more # Sources we use to split up the main spec file in sections so that we can more
# easily see what specfile sections are touched by a patch. # easily see what specfile sections are touched by a patch.
Source1000: version.spec.inc Source1000: version.spec.inc