Use gcc-toolset-13-gdb for gdb-add-index
Resolves: rhbz#2188418
This commit is contained in:
parent
5df215a555
commit
9fc9144a87
13
clang.spec
13
clang.spec
@ -2,6 +2,8 @@
|
|||||||
# See https://docs.fedoraproject.org/en-US/packaging-guidelines/#_compiler_macros
|
# See https://docs.fedoraproject.org/en-US/packaging-guidelines/#_compiler_macros
|
||||||
%global toolchain clang
|
%global toolchain clang
|
||||||
|
|
||||||
|
%global gts_version 13
|
||||||
|
|
||||||
%bcond_with compat_build
|
%bcond_with compat_build
|
||||||
%bcond_without bundle_compat_lib
|
%bcond_without bundle_compat_lib
|
||||||
%bcond_without check
|
%bcond_without check
|
||||||
@ -45,7 +47,7 @@
|
|||||||
|
|
||||||
Name: %pkg_name
|
Name: %pkg_name
|
||||||
Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}}
|
Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}}
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: A C language family front-end for LLVM
|
Summary: A C language family front-end for LLVM
|
||||||
|
|
||||||
License: Apache-2.0 WITH LLVM-exception OR NCSA
|
License: Apache-2.0 WITH LLVM-exception OR NCSA
|
||||||
@ -103,9 +105,11 @@ Patch201: 0001-clang-tools-extra-Make-test-dependency-on-LLVMHello-.patch
|
|||||||
# tools statically to some static libraries from LLVM, we
|
# tools statically to some static libraries from LLVM, we
|
||||||
# need to use libstdc++12 as well. So, use gcc-toolset-12
|
# need to use libstdc++12 as well. So, use gcc-toolset-12
|
||||||
# to compile clang.
|
# to compile clang.
|
||||||
|
# TODO: Update to use gts_version.
|
||||||
BuildRequires: gcc-toolset-12-gcc-c++
|
BuildRequires: gcc-toolset-12-gcc-c++
|
||||||
BuildRequires: gcc-toolset-12-annobin-plugin-gcc
|
BuildRequires: gcc-toolset-12-annobin-plugin-gcc
|
||||||
BuildRequires: gcc-toolset-12-libatomic-devel
|
BuildRequires: gcc-toolset-12-libatomic-devel
|
||||||
|
BuildRequires: gcc-toolset-%{gts_version}-gdb
|
||||||
BuildRequires: clang
|
BuildRequires: clang
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: ninja-build
|
BuildRequires: ninja-build
|
||||||
@ -441,6 +445,10 @@ mv ../cmake-%{compat_ver}.src ../cmake
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
|
# Use newer GDB for gdb-add-index step, as system GDB can't handle the LTO debuginfo.
|
||||||
|
source scl_source enable gcc-toolset-%{gts_version}
|
||||||
|
export GDB=`which gdb`
|
||||||
|
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
%if %{with bundle_compat_lib}
|
%if %{with bundle_compat_lib}
|
||||||
@ -686,6 +694,9 @@ mv ./libclang-cpp.so.%{compat_maj_ver} "$compat_lib"
|
|||||||
|
|
||||||
%endif
|
%endif
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 29 2023 Nikita Popov <npopov@redhat.com> - 16.0.1-5
|
||||||
|
- Use gcc-toolset-13-gdb for gdb-add-index
|
||||||
|
|
||||||
* Fri Jun 02 2023 Nikita Popov <npopov@redhat.com> - 16.0.1-4
|
* Fri Jun 02 2023 Nikita Popov <npopov@redhat.com> - 16.0.1-4
|
||||||
- Build with LTO
|
- Build with LTO
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user