|
|
999efc |
%global __python /usr/bin/python3
|
|
|
999efc |
%{?scl:%global __strip %%{_scl_root}/usr/bin/strip}
|
|
|
999efc |
%{?scl:%global __objdump %%{_scl_root}/usr/bin/objdump}
|
|
|
999efc |
%{?scl:%scl_package gcc}
|
|
|
e9307e |
%global DATE 20210130
|
|
|
e9307e |
%global gitrev 966e4575ccd8b618811b4871e44c31bb2d11a82a
|
|
|
999efc |
%global gcc_version 10.2.1
|
|
|
999efc |
%global gcc_major 10
|
|
|
999efc |
# Note, gcc_release must be integer, if you want to add suffixes to
|
|
|
999efc |
# %%{release}, append them after %%{gcc_release} on Release: line.
|
|
|
e9307e |
%global gcc_release 11
|
|
|
999efc |
%global mpc_version 1.0.3
|
|
|
999efc |
%global isl_version 0.16.1
|
|
|
999efc |
%global mpfr_version 3.1.4
|
|
|
999efc |
%global gmp_version 6.1.0
|
|
|
999efc |
%global doxygen_version 1.8.0
|
|
|
999efc |
%global _unpackaged_files_terminate_build 0
|
|
|
999efc |
%if 0%{?fedora} > 27 || 0%{?rhel} > 7
|
|
|
999efc |
%undefine _annotated_build
|
|
|
999efc |
%endif
|
|
|
999efc |
# Strip will fail on nvptx-none *.a archives and the brp-* scripts will
|
|
|
999efc |
# fail randomly depending on what is stripped last.
|
|
|
999efc |
%if 0%{?__brp_strip_static_archive:1}
|
|
|
999efc |
%global __brp_strip_static_archive %{__brp_strip_static_archive} || :
|
|
|
999efc |
%endif
|
|
|
999efc |
%if 0%{?__brp_strip_lto:1}
|
|
|
999efc |
%global __brp_strip_lto %{__brp_strip_lto} || :
|
|
|
999efc |
%endif
|
|
|
999efc |
%global multilib_64_archs sparc64 ppc64 ppc64p7 x86_64
|
|
|
999efc |
%if 0%{?rhel} > 7
|
|
|
999efc |
%global build_ada 0
|
|
|
999efc |
%global build_objc 0
|
|
|
999efc |
%global build_go 0
|
|
|
999efc |
%global build_d 0
|
|
|
999efc |
%else
|
|
|
999efc |
%ifarch %{ix86} x86_64 ia64 ppc %{power64} alpha s390x %{arm} aarch64
|
|
|
999efc |
%global build_ada 0
|
|
|
999efc |
%else
|
|
|
999efc |
%global build_ada 0
|
|
|
999efc |
%endif
|
|
|
999efc |
%global build_objc 0
|
|
|
999efc |
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 %{mips}
|
|
|
999efc |
%global build_go 0
|
|
|
999efc |
%else
|
|
|
999efc |
%global build_go 0
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{ix86} x86_64 %{arm} %{mips} s390 s390x riscv64
|
|
|
999efc |
%global build_d 1
|
|
|
999efc |
%else
|
|
|
999efc |
%global build_d 0
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%if 0%{?rhel} >= 7
|
|
|
999efc |
%ifarch %{ix86} x86_64 ia64 ppc ppc64 ppc64le
|
|
|
999efc |
%global build_libquadmath 1
|
|
|
999efc |
%else
|
|
|
999efc |
%global build_libquadmath 0
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%if 0%{?rhel} == 6
|
|
|
999efc |
%ifarch %{ix86} x86_64 ia64 ppc64le
|
|
|
999efc |
%global build_libquadmath 1
|
|
|
999efc |
%else
|
|
|
999efc |
%global build_libquadmath 0
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64
|
|
|
999efc |
%global build_libasan 1
|
|
|
999efc |
%else
|
|
|
999efc |
%global build_libasan 0
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch x86_64 ppc64 ppc64le aarch64
|
|
|
999efc |
%global build_libtsan 1
|
|
|
999efc |
%else
|
|
|
999efc |
%global build_libtsan 0
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch x86_64 ppc64 ppc64le aarch64
|
|
|
999efc |
%global build_liblsan 1
|
|
|
999efc |
%else
|
|
|
999efc |
%global build_liblsan 0
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64
|
|
|
999efc |
%global build_libubsan 1
|
|
|
999efc |
%else
|
|
|
999efc |
%global build_libubsan 0
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 %{mips} riscv64
|
|
|
999efc |
%global build_libatomic 1
|
|
|
999efc |
%else
|
|
|
999efc |
%global build_libatomic 0
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{ix86} x86_64 %{arm} alpha ppc ppc64 ppc64le ppc64p7 s390 s390x aarch64
|
|
|
999efc |
%global build_libitm 1
|
|
|
999efc |
%else
|
|
|
999efc |
%global build_libitm 0
|
|
|
999efc |
%endif
|
|
|
999efc |
%if 0%{?rhel} == 6
|
|
|
999efc |
%global build_isl 0
|
|
|
999efc |
%else
|
|
|
999efc |
%global build_isl 1
|
|
|
999efc |
%endif
|
|
|
999efc |
%global build_libstdcxx_docs 1
|
|
|
999efc |
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 %{mips}
|
|
|
999efc |
%global attr_ifunc 1
|
|
|
999efc |
%else
|
|
|
999efc |
%global attr_ifunc 0
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch x86_64 ppc64le
|
|
|
999efc |
%global build_offload_nvptx 0
|
|
|
999efc |
%else
|
|
|
999efc |
%global build_offload_nvptx 0
|
|
|
999efc |
%endif
|
|
|
999efc |
%if 0%{?fedora} < 32
|
|
|
999efc |
%ifarch s390x
|
|
|
999efc |
%global multilib_32_arch s390
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparc64
|
|
|
999efc |
%global multilib_32_arch sparcv9
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ppc64 ppc64p7
|
|
|
999efc |
%global multilib_32_arch ppc
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch x86_64
|
|
|
999efc |
%global multilib_32_arch i686
|
|
|
999efc |
%endif
|
|
|
999efc |
Summary: GCC version 10
|
|
|
999efc |
Name: %{?scl_prefix}gcc
|
|
|
999efc |
Version: %{gcc_version}
|
|
|
999efc |
Release: %{gcc_release}.1%{?dist}
|
|
|
999efc |
# libgcc, libgfortran, libgomp, libstdc++ and crtstuff have
|
|
|
999efc |
# GCC Runtime Exception.
|
|
|
999efc |
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
|
|
|
999efc |
# The source for this package was pulled from upstream's vcs. Use the
|
|
|
999efc |
# following commands to generate the tarball:
|
|
|
999efc |
# git clone --depth 1 git://gcc.gnu.org/git/gcc.git gcc-dir.tmp
|
|
|
999efc |
# git --git-dir=gcc-dir.tmp/.git fetch --depth 1 origin %%{gitrev}
|
|
|
999efc |
# git --git-dir=gcc-dir.tmp/.git archive --prefix=%%{name}-%%{version}-%%{DATE}/ %%{gitrev} | xz -9e > %%{name}-%%{version}-%%{DATE}.tar.xz
|
|
|
999efc |
# rm -rf gcc-dir.tmp
|
|
|
999efc |
Source0: gcc-%{version}-%{DATE}.tar.xz
|
|
|
999efc |
Source1: ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-%{isl_version}.tar.bz2
|
|
|
999efc |
Source2: http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
|
|
|
999efc |
Source3: ftp://ftp.stack.nl/pub/users/dimitri/doxygen-%{doxygen_version}.src.tar.gz
|
|
|
999efc |
Source4: libgomp_nonshared.c
|
|
|
999efc |
Source5: http://gcc.gnu.org/pub/gcc/infrastructure/mpfr-%{mpfr_version}.tar.bz2
|
|
|
999efc |
Source6: http://gcc.gnu.org/pub/gcc/infrastructure/gmp-%{gmp_version}.tar.bz2
|
|
|
999efc |
URL: http://gcc.gnu.org
|
|
|
999efc |
# Need binutils with -pie support >= 2.14.90.0.4-4
|
|
|
999efc |
# Need binutils which can omit dot symbols and overlap .opd on ppc64 >= 2.15.91.0.2-4
|
|
|
999efc |
# Need binutils which handle -msecure-plt on ppc >= 2.16.91.0.2-2
|
|
|
999efc |
# Need binutils which support .weakref >= 2.16.91.0.3-1
|
|
|
999efc |
# Need binutils which support --hash-style=gnu >= 2.17.50.0.2-7
|
|
|
999efc |
# Need binutils which support mffgpr and mftgpr >= 2.17.50.0.2-8
|
|
|
999efc |
# Need binutils which support --build-id >= 2.17.50.0.17-3
|
|
|
999efc |
# Need binutils which support %%gnu_unique_object >= 2.19.51.0.14
|
|
|
999efc |
# Need binutils which support .cfi_sections >= 2.19.51.0.14-33
|
|
|
999efc |
# Need binutils which support --no-add-needed >= 2.20.51.0.2-12
|
|
|
999efc |
# Need binutils which support -plugin
|
|
|
999efc |
# Need binutils which support .loc view >= 2.30
|
|
|
999efc |
# Need binutils which support --generate-missing-build-notes=yes >= 2.31
|
|
|
e9307e |
BuildRequires: procps-ng
|
|
|
999efc |
BuildRequires: binutils >= 2.19.51.0.14-33
|
|
|
999efc |
# While gcc doesn't include statically linked binaries, during testing
|
|
|
999efc |
# -static is used several times.
|
|
|
999efc |
BuildRequires: glibc-static
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
BuildRequires: %{?scl_prefix}binutils >= 2.31
|
|
|
999efc |
# For testing
|
|
|
999efc |
BuildRequires: %{?scl_prefix}gdb >= 7.4.50
|
|
|
999efc |
%endif
|
|
|
999efc |
BuildRequires: zlib-devel, gettext, dejagnu, bison, flex, sharutils
|
|
|
999efc |
BuildRequires: texinfo, texinfo-tex, /usr/bin/pod2man
|
|
|
999efc |
#BuildRequires: systemtap-sdt-devel >= 1.3
|
|
|
999efc |
#BuildRequires: gmp-devel >= 4.1.2-8, mpfr-devel >= 2.2.1, libmpc-devel >= 0.8.1
|
|
|
999efc |
#BuildRequires: python3-devel, /usr/bin/python
|
|
|
e9307e |
BuildRequires: gcc, gcc-c++, make
|
|
|
999efc |
# For VTA guality testing
|
|
|
999efc |
BuildRequires: gdb
|
|
|
999efc |
# Make sure pthread.h doesn't contain __thread tokens
|
|
|
999efc |
# Make sure glibc supports stack protector
|
|
|
999efc |
# Make sure glibc supports DT_GNU_HASH
|
|
|
999efc |
BuildRequires: glibc-devel >= 2.4.90-13
|
|
|
999efc |
BuildRequires: elfutils-devel >= 0.147
|
|
|
999efc |
BuildRequires: elfutils-libelf-devel >= 0.147
|
|
|
999efc |
%if 0%{?rhel} >= 8
|
|
|
999efc |
BuildRequires: libzstd-devel
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ppc ppc64 ppc64le ppc64p7 s390 s390x sparc sparcv9 alpha
|
|
|
999efc |
# Make sure glibc supports TFmode long double
|
|
|
999efc |
BuildRequires: glibc >= 2.3.90-35
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{multilib_64_archs} sparcv9 ppc
|
|
|
999efc |
# Ensure glibc{,-devel} is installed for both multilib arches
|
|
|
999efc |
BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ia64
|
|
|
999efc |
BuildRequires: libunwind >= 0.98
|
|
|
999efc |
%endif
|
|
|
999efc |
# Need .eh_frame ld optimizations
|
|
|
999efc |
# Need proper visibility support
|
|
|
999efc |
# Need -pie support
|
|
|
999efc |
# Need --as-needed/--no-as-needed support
|
|
|
999efc |
# On ppc64, need omit dot symbols support and --non-overlapping-opd
|
|
|
999efc |
# Need binutils that owns /usr/bin/c++filt
|
|
|
999efc |
# Need binutils that support .weakref
|
|
|
999efc |
# Need binutils that supports --hash-style=gnu
|
|
|
999efc |
# Need binutils that support mffgpr/mftgpr
|
|
|
999efc |
# Need binutils that support --build-id
|
|
|
999efc |
# Need binutils that support %%gnu_unique_object
|
|
|
999efc |
# Need binutils that support .cfi_sections
|
|
|
999efc |
# Need binutils that support --no-add-needed
|
|
|
999efc |
# Need binutils that support -plugin
|
|
|
999efc |
# Need binutils that support .loc view >= 2.30
|
|
|
999efc |
# Need binutils which support --generate-missing-build-notes=yes >= 2.31
|
|
|
999efc |
%if 0%{?rhel} <= 7
|
|
|
999efc |
Requires: %{?scl_prefix}binutils >= 2.22.52.0.1
|
|
|
999efc |
%else
|
|
|
999efc |
Requires: binutils >= 2.24
|
|
|
999efc |
%endif
|
|
|
999efc |
# Make sure gdb will understand DW_FORM_strp
|
|
|
999efc |
Conflicts: gdb < 5.1-2
|
|
|
999efc |
Requires: glibc-devel >= 2.2.90-12
|
|
|
999efc |
%ifarch ppc ppc64 ppc64le ppc64p7 s390 s390x sparc sparcv9 alpha
|
|
|
999efc |
# Make sure glibc supports TFmode long double
|
|
|
999efc |
Requires: glibc >= 2.3.90-35
|
|
|
999efc |
%endif
|
|
|
999efc |
%if 0%{?rhel} >= 7
|
|
|
999efc |
BuildRequires: gmp-devel >= 4.3.2
|
|
|
999efc |
BuildRequires: mpfr-devel >= 3.1.0
|
|
|
999efc |
BuildRequires: libmpc-devel >= 0.8.1
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libstdcxx_docs}
|
|
|
999efc |
BuildRequires: libxml2
|
|
|
999efc |
BuildRequires: graphviz
|
|
|
999efc |
%if 0%{?rhel} < 7
|
|
|
999efc |
# doxygen BRs
|
|
|
999efc |
BuildRequires: perl
|
|
|
999efc |
BuildRequires: texlive-dvips, texlive-utils, texlive-latex
|
|
|
999efc |
BuildRequires: ghostscript
|
|
|
999efc |
%endif
|
|
|
999efc |
%if 0%{?rhel} >= 7
|
|
|
999efc |
BuildRequires: doxygen >= 1.7.1
|
|
|
999efc |
BuildRequires: dblatex, texlive-collection-latex, docbook5-style-xsl
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
Requires: libgcc >= 4.1.2-43
|
|
|
999efc |
Requires: libgomp >= 4.4.4-13
|
|
|
e9307e |
# lto-wrapper invokes make
|
|
|
e9307e |
Requires: make
|
|
|
999efc |
%{?scl:Requires:%scl_runtime}
|
|
|
999efc |
AutoReq: true
|
|
|
999efc |
Provides: bundled(libiberty)
|
|
|
999efc |
Provides: gcc(major) = %{gcc_major}
|
|
|
999efc |
%ifarch sparc64 ppc64 ppc64le s390x x86_64 ia64 aarch64
|
|
|
999efc |
Provides: liblto_plugin.so.0()(64bit)
|
|
|
999efc |
%else
|
|
|
999efc |
Provides: liblto_plugin.so.0
|
|
|
999efc |
%endif
|
|
|
999efc |
%global oformat %{nil}
|
|
|
999efc |
%global oformat2 %{nil}
|
|
|
999efc |
%ifarch %{ix86}
|
|
|
999efc |
%global oformat OUTPUT_FORMAT(elf32-i386)
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch x86_64
|
|
|
999efc |
%global oformat OUTPUT_FORMAT(elf64-x86-64)
|
|
|
999efc |
%global oformat2 OUTPUT_FORMAT(elf32-i386)
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ppc
|
|
|
999efc |
%global oformat OUTPUT_FORMAT(elf32-powerpc)
|
|
|
999efc |
%global oformat2 OUTPUT_FORMAT(elf64-powerpc)
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ppc64
|
|
|
999efc |
%global oformat OUTPUT_FORMAT(elf64-powerpc)
|
|
|
999efc |
%global oformat2 OUTPUT_FORMAT(elf32-powerpc)
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch s390
|
|
|
999efc |
%global oformat OUTPUT_FORMAT(elf32-s390)
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch s390x
|
|
|
999efc |
%global oformat OUTPUT_FORMAT(elf64-s390)
|
|
|
999efc |
%global oformat2 OUTPUT_FORMAT(elf32-s390)
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ia64
|
|
|
999efc |
%global oformat OUTPUT_FORMAT(elf64-ia64-little)
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ppc64le
|
|
|
999efc |
%global oformat OUTPUT_FORMAT(elf64-powerpcle)
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch aarch64
|
|
|
999efc |
%global oformat OUTPUT_FORMAT(elf64-littleaarch64)
|
|
|
999efc |
%endif
|
|
|
999efc |
%if 0%{?rhel} == 6
|
|
|
999efc |
ExclusiveArch: x86_64 %{ix86}
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
Patch0: gcc10-hack.patch
|
|
|
999efc |
Patch1: gcc10-i386-libgomp.patch
|
|
|
999efc |
Patch2: gcc10-sparc-config-detection.patch
|
|
|
999efc |
Patch3: gcc10-libgomp-omp_h-multilib.patch
|
|
|
999efc |
Patch4: gcc10-libtool-no-rpath.patch
|
|
|
999efc |
Patch5: gcc10-isl-dl.patch
|
|
|
999efc |
Patch6: gcc10-libstdc++-docs.patch
|
|
|
999efc |
Patch7: gcc10-no-add-needed.patch
|
|
|
999efc |
Patch8: gcc10-foffload-default.patch
|
|
|
999efc |
Patch9: gcc10-Wno-format-security.patch
|
|
|
999efc |
Patch10: gcc10-rh1574936.patch
|
|
|
999efc |
Patch11: gcc10-d-shared-libphobos.patch
|
|
|
999efc |
Patch12: gcc10-pr94540.patch
|
|
|
999efc |
Patch13: gcc10-pr96383.patch
|
|
|
e9307e |
Patch14: gcc10-pr97524.patch
|
|
|
e9307e |
Patch15: gcc10-SIZE_MAX.patch
|
|
|
999efc |
|
|
|
999efc |
Patch1000: gcc10-libstdc++-compat.patch
|
|
|
999efc |
Patch1001: gcc10-alt-compat-test.patch
|
|
|
999efc |
Patch1002: gcc10-isl-dl2.patch
|
|
|
999efc |
Patch1003: gcc10-libgfortran-compat.patch
|
|
|
999efc |
Patch1004: gcc10-libgfortran-compat-2.patch
|
|
|
999efc |
|
|
|
999efc |
Patch2001: doxygen-1.7.1-config.patch
|
|
|
999efc |
Patch2002: doxygen-1.7.5-timestamp.patch
|
|
|
999efc |
Patch2003: doxygen-1.8.0-rh856725.patch
|
|
|
999efc |
|
|
|
999efc |
Patch3001: 0001-Allow-duplicate-declarations.patch
|
|
|
999efc |
Patch3002: 0002-Convert-LOGICAL-to-INTEGER-for-arithmetic-ops-and-vi.patch
|
|
|
999efc |
Patch3003: 0003-Allow-more-than-one-character-as-argument-to-ICHAR.patch
|
|
|
999efc |
Patch3004: 0004-Allow-non-integer-substring-indexes.patch
|
|
|
999efc |
Patch3005: 0005-Allow-old-style-initializers-in-derived-types.patch
|
|
|
999efc |
Patch3006: 0006-Allow-string-length-and-kind-to-be-specified-on-a-pe.patch
|
|
|
999efc |
Patch3007: 0007-Allow-non-logical-expressions-in-IF-statements.patch
|
|
|
999efc |
Patch3008: 0008-Support-type-promotion-in-calls-to-intrinsics.patch
|
|
|
999efc |
Patch3009: 0009-Add-the-SEQUENCE-attribute-by-default-if-it-s-not.patch
|
|
|
999efc |
Patch3010: 0010-Fill-in-missing-array-dimensions-using-the-lower-bou.patch
|
|
|
999efc |
|
|
|
999efc |
%if 0%{?rhel} > 7
|
|
|
999efc |
%global nonsharedver 80
|
|
|
999efc |
%else
|
|
|
999efc |
%if 0%{?rhel} == 7
|
|
|
999efc |
%global nonsharedver 48
|
|
|
999efc |
%else
|
|
|
999efc |
%global nonsharedver 44
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
%global _gnu %{nil}
|
|
|
999efc |
%else
|
|
|
999efc |
%global _gnu -gnueabi
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparcv9
|
|
|
999efc |
%global gcc_target_platform sparc64-%{_vendor}-%{_target_os}
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ppc ppc64p7
|
|
|
999efc |
%global gcc_target_platform ppc64-%{_vendor}-%{_target_os}
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifnarch sparcv9 ppc ppc64p7
|
|
|
999efc |
%global gcc_target_platform %{_target_platform}
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%description
|
|
|
999efc |
The %{?scl_prefix}gcc%{!?scl:10} package contains the GNU Compiler Collection version 10.
|
|
|
999efc |
|
|
|
999efc |
%package -n libgcc
|
|
|
999efc |
Summary: GCC version 10 shared support library
|
|
|
999efc |
Autoreq: false
|
|
|
999efc |
|
|
|
999efc |
%description -n libgcc
|
|
|
999efc |
This package contains GCC shared support library which is needed
|
|
|
999efc |
e.g. for exception handling support.
|
|
|
999efc |
|
|
|
999efc |
%package c++
|
|
|
999efc |
Summary: C++ support for GCC version 10
|
|
|
999efc |
Requires: %{?scl_prefix}gcc%{!?scl:10} = %{version}-%{release}
|
|
|
999efc |
%if 0%{?rhel} >= 7
|
|
|
999efc |
Requires: libstdc++
|
|
|
999efc |
%else
|
|
|
999efc |
Requires: libstdc++ >= 4.4.4-13
|
|
|
999efc |
%endif
|
|
|
999efc |
Requires: %{?scl_prefix}libstdc++%{!?scl:10}-devel = %{version}-%{release}
|
|
|
999efc |
Autoreq: true
|
|
|
999efc |
|
|
|
999efc |
%description c++
|
|
|
999efc |
This package adds C++ support to the GNU Compiler Collection
|
|
|
999efc |
version 10. It includes support for most of the current C++ specification
|
|
|
999efc |
and a lot of support for the upcoming C++ specification.
|
|
|
999efc |
|
|
|
999efc |
%package -n libstdc++
|
|
|
999efc |
Summary: GNU Standard C++ Library
|
|
|
999efc |
Autoreq: true
|
|
|
999efc |
Requires: glibc >= 2.10.90-7
|
|
|
999efc |
|
|
|
999efc |
%description -n libstdc++
|
|
|
999efc |
The libstdc++ package contains a rewritten standard compliant GCC Standard
|
|
|
999efc |
C++ Library.
|
|
|
999efc |
|
|
|
999efc |
%package -n %{?scl_prefix}libstdc++%{!?scl:10}-devel
|
|
|
999efc |
Summary: Header files and libraries for C++ development
|
|
|
999efc |
%if 0%{?rhel} >= 7
|
|
|
999efc |
Requires: libstdc++
|
|
|
999efc |
%else
|
|
|
999efc |
Requires: libstdc++ >= 4.4.4-13
|
|
|
999efc |
%endif
|
|
|
999efc |
Requires: libstdc++%{?_isa}
|
|
|
999efc |
Autoreq: true
|
|
|
999efc |
Autoprov: true
|
|
|
999efc |
|
|
|
999efc |
%description -n %{?scl_prefix}libstdc++%{!?scl:10}-devel
|
|
|
999efc |
This is the GNU implementation of the standard C++ libraries. This
|
|
|
999efc |
package includes the header files and libraries needed for C++
|
|
|
999efc |
development. This includes rewritten implementation of STL.
|
|
|
999efc |
|
|
|
999efc |
%package -n %{?scl_prefix}libstdc++%{!?scl:10}-docs
|
|
|
999efc |
Summary: Documentation for the GNU standard C++ library
|
|
|
999efc |
Autoreq: true
|
|
|
999efc |
|
|
|
999efc |
%description -n %{?scl_prefix}libstdc++%{!?scl:10}-docs
|
|
|
999efc |
Manual, doxygen generated API information and Frequently Asked Questions
|
|
|
999efc |
for the GNU standard C++ library.
|
|
|
999efc |
|
|
|
999efc |
%package gfortran
|
|
|
999efc |
Summary: Fortran support for GCC 10
|
|
|
999efc |
Requires: %{?scl_prefix}gcc%{!?scl:10} = %{version}-%{release}
|
|
|
999efc |
%if 0%{?rhel} > 7
|
|
|
999efc |
Requires: libgfortran >= 8.1.1
|
|
|
999efc |
%else
|
|
|
999efc |
Requires: libgfortran5 >= 8.1.1
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
%if 0%{!?scl:1}
|
|
|
999efc |
Requires: libquadmath
|
|
|
999efc |
%endif
|
|
|
999efc |
Requires: %{?scl_prefix}libquadmath-devel = %{version}-%{release}
|
|
|
999efc |
%endif
|
|
|
999efc |
Autoreq: true
|
|
|
999efc |
Autoprov: true
|
|
|
999efc |
|
|
|
999efc |
%description gfortran
|
|
|
999efc |
The %{?scl_prefix}gcc%{!?scl:10}-gfortran package provides support for compiling Fortran
|
|
|
999efc |
programs with the GNU Compiler Collection.
|
|
|
999efc |
|
|
|
999efc |
|
|
|
999efc |
%package gdb-plugin
|
|
|
999efc |
Summary: GCC 10 plugin for GDB
|
|
|
999efc |
Requires: %{?scl_prefix}gcc%{!?scl:10} = %{version}-%{release}
|
|
|
999efc |
|
|
|
999efc |
%description gdb-plugin
|
|
|
999efc |
This package contains GCC 10 plugin for GDB C expression evaluation.
|
|
|
999efc |
|
|
|
999efc |
%package -n %{?scl_prefix}libgccjit
|
|
|
999efc |
Summary: Library for embedding GCC inside programs and libraries
|
|
|
999efc |
Requires: %{?scl_prefix}gcc%{!?scl:10} = %{version}-%{release}
|
|
|
999efc |
|
|
|
999efc |
%description -n %{?scl_prefix}libgccjit
|
|
|
999efc |
This package contains shared library with GCC 10 JIT front-end.
|
|
|
999efc |
|
|
|
999efc |
%package -n %{?scl_prefix}libgccjit-devel
|
|
|
999efc |
Summary: Support for embedding GCC inside programs and libraries
|
|
|
999efc |
Group: Development/Libraries
|
|
|
999efc |
Requires: %{?scl_prefix}libgccjit = %{version}-%{release}
|
|
|
999efc |
Requires: %{?scl_prefix}libgccjit-docs = %{version}-%{release}
|
|
|
999efc |
|
|
|
999efc |
%description -n %{?scl_prefix}libgccjit-devel
|
|
|
999efc |
This package contains header files for GCC 10 JIT front end.
|
|
|
999efc |
|
|
|
999efc |
%package -n %{?scl_prefix}libgccjit-docs
|
|
|
999efc |
Summary: Documentation for embedding GCC inside programs and libraries
|
|
|
999efc |
Group: Development/Libraries
|
|
|
999efc |
%if 0%{?rhel} > 7
|
|
|
999efc |
BuildRequires: python3-sphinx
|
|
|
999efc |
%else
|
|
|
999efc |
BuildRequires: python-sphinx
|
|
|
999efc |
%endif
|
|
|
999efc |
Requires(post): /sbin/install-info
|
|
|
999efc |
Requires(preun): /sbin/install-info
|
|
|
999efc |
|
|
|
999efc |
%description -n %{?scl_prefix}libgccjit-docs
|
|
|
999efc |
This package contains documentation for GCC 10 JIT front-end.
|
|
|
999efc |
|
|
|
999efc |
%package -n libquadmath
|
|
|
999efc |
Summary: GCC 10 __float128 shared support library
|
|
|
999efc |
Requires(post): /sbin/install-info
|
|
|
999efc |
Requires(preun): /sbin/install-info
|
|
|
999efc |
|
|
|
999efc |
%description -n libquadmath
|
|
|
999efc |
This package contains GCC shared support library which is needed
|
|
|
999efc |
for __float128 math support and for Fortran REAL*16 support.
|
|
|
999efc |
|
|
|
999efc |
%package -n %{?scl_prefix}libquadmath-devel
|
|
|
999efc |
Summary: GCC 10 __float128 support
|
|
|
999efc |
Group: Development/Libraries
|
|
|
999efc |
%if 0%{!?scl:1}
|
|
|
999efc |
Requires: %{?scl_prefix}libquadmath%{_isa} = %{version}-%{release}
|
|
|
999efc |
%else
|
|
|
999efc |
%if 0%{?rhel} >= 7
|
|
|
999efc |
Requires: libquadmath%{_isa}
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
Requires: %{?scl_prefix}gcc%{!?scl:10} = %{version}-%{release}
|
|
|
999efc |
|
|
|
999efc |
%description -n %{?scl_prefix}libquadmath-devel
|
|
|
999efc |
This package contains headers for building Fortran programs using
|
|
|
999efc |
REAL*16 and programs using __float128 math.
|
|
|
999efc |
|
|
|
999efc |
%package -n libitm
|
|
|
999efc |
Summary: The GNU Transactional Memory library
|
|
|
999efc |
Group: System Environment/Libraries
|
|
|
999efc |
Requires(post): /sbin/install-info
|
|
|
999efc |
Requires(preun): /sbin/install-info
|
|
|
999efc |
|
|
|
999efc |
%description -n libitm
|
|
|
999efc |
This package contains the GNU Transactional Memory library
|
|
|
999efc |
which is a GCC transactional memory support runtime library.
|
|
|
999efc |
|
|
|
999efc |
%package -n %{?scl_prefix}libitm-devel
|
|
|
999efc |
Summary: The GNU Transactional Memory support
|
|
|
999efc |
Requires: libitm%{_isa} >= 4.7.0-1
|
|
|
999efc |
Requires: %{?scl_prefix}gcc%{!?scl:10} = %{version}-%{release}
|
|
|
999efc |
|
|
|
999efc |
%description -n %{?scl_prefix}libitm-devel
|
|
|
999efc |
This package contains headers and support files for the
|
|
|
999efc |
GNU Transactional Memory library.
|
|
|
999efc |
|
|
|
999efc |
%package plugin-devel
|
|
|
999efc |
Summary: Support for compiling GCC plugins
|
|
|
999efc |
Requires: %{?scl_prefix}gcc%{!?scl:10} = %{version}-%{release}
|
|
|
999efc |
%if 0%{?rhel} >= 7
|
|
|
999efc |
Requires: gmp-devel >= 4.3.2
|
|
|
999efc |
Requires: mpfr-devel >= 3.1.0
|
|
|
999efc |
Requires: libmpc-devel >= 0.8.1
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%description plugin-devel
|
|
|
999efc |
This package contains header files and other support files
|
|
|
999efc |
for compiling GCC 8 plugins. The GCC plugin ABI is currently
|
|
|
999efc |
not stable, so plugins must be rebuilt any time GCC is updated.
|
|
|
999efc |
|
|
|
999efc |
%package -n libatomic
|
|
|
999efc |
Summary: The GNU Atomic library
|
|
|
999efc |
Group: System Environment/Libraries
|
|
|
999efc |
Requires(post): /sbin/install-info
|
|
|
999efc |
Requires(preun): /sbin/install-info
|
|
|
999efc |
|
|
|
999efc |
%description -n libatomic
|
|
|
999efc |
This package contains the GNU Atomic library
|
|
|
999efc |
which is a GCC support runtime library for atomic operations not supported
|
|
|
999efc |
by hardware.
|
|
|
999efc |
|
|
|
999efc |
%package -n %{?scl_prefix}libatomic-devel
|
|
|
999efc |
Summary: The GNU Atomic static library
|
|
|
999efc |
Requires: libatomic%{_isa} >= 4.8.0
|
|
|
999efc |
|
|
|
999efc |
%description -n %{?scl_prefix}libatomic-devel
|
|
|
999efc |
This package contains GNU Atomic static libraries.
|
|
|
999efc |
|
|
|
999efc |
%package -n libasan6
|
|
|
999efc |
Summary: The Address Sanitizer runtime library from GCC 10
|
|
|
999efc |
Group: System Environment/Libraries
|
|
|
999efc |
Requires(post): /sbin/install-info
|
|
|
999efc |
Requires(preun): /sbin/install-info
|
|
|
999efc |
|
|
|
999efc |
%description -n libasan6
|
|
|
999efc |
This package contains the Address Sanitizer library from GCC 10
|
|
|
999efc |
which is used for -fsanitize=address instrumented programs.
|
|
|
999efc |
|
|
|
999efc |
%package -n %{?scl_prefix}libasan-devel
|
|
|
999efc |
Summary: The Address Sanitizer static library
|
|
|
999efc |
%if 0%{?rhel} > 7
|
|
|
999efc |
Requires: libasan%{_isa} >= 8.3.1
|
|
|
999efc |
Obsoletes: libasan5
|
|
|
999efc |
%else
|
|
|
999efc |
Requires: libasan6%{_isa} >= 8.3.1
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%description -n %{?scl_prefix}libasan-devel
|
|
|
999efc |
This package contains Address Sanitizer static runtime library.
|
|
|
999efc |
|
|
|
999efc |
%package -n libtsan
|
|
|
999efc |
Summary: The Thread Sanitizer runtime library
|
|
|
999efc |
Requires(post): /sbin/install-info
|
|
|
999efc |
Requires(preun): /sbin/install-info
|
|
|
999efc |
|
|
|
999efc |
%description -n libtsan
|
|
|
999efc |
This package contains the Thread Sanitizer library
|
|
|
999efc |
which is used for -fsanitize=thread instrumented programs.
|
|
|
999efc |
|
|
|
999efc |
%package -n %{?scl_prefix}libtsan-devel
|
|
|
999efc |
Summary: The Thread Sanitizer static library
|
|
|
999efc |
Requires: libtsan%{_isa} >= 5.1.1
|
|
|
999efc |
|
|
|
999efc |
%description -n %{?scl_prefix}libtsan-devel
|
|
|
999efc |
This package contains Thread Sanitizer static runtime library.
|
|
|
999efc |
|
|
|
999efc |
%package -n libubsan1
|
|
|
999efc |
Summary: The Undefined Behavior Sanitizer runtime library
|
|
|
999efc |
Requires(post): /sbin/install-info
|
|
|
999efc |
Requires(preun): /sbin/install-info
|
|
|
999efc |
|
|
|
999efc |
%description -n libubsan1
|
|
|
999efc |
This package contains the Undefined Behavior Sanitizer library
|
|
|
999efc |
which is used for -fsanitize=undefined instrumented programs.
|
|
|
999efc |
|
|
|
999efc |
%package -n %{?scl_prefix}libubsan-devel
|
|
|
999efc |
Summary: The Undefined Behavior Sanitizer static library
|
|
|
999efc |
%if 0%{?rhel} > 7
|
|
|
999efc |
Requires: libubsan%{_isa} >= 8.3.1
|
|
|
999efc |
Obsoletes: libubsan1
|
|
|
999efc |
%else
|
|
|
999efc |
Requires: libubsan1%{_isa} >= 8.3.1
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%description -n %{?scl_prefix}libubsan-devel
|
|
|
999efc |
This package contains Undefined Behavior Sanitizer static runtime library.
|
|
|
999efc |
|
|
|
999efc |
%package -n liblsan
|
|
|
999efc |
Summary: The Leak Sanitizer runtime library
|
|
|
999efc |
Requires(post): /sbin/install-info
|
|
|
999efc |
Requires(preun): /sbin/install-info
|
|
|
999efc |
|
|
|
999efc |
%description -n liblsan
|
|
|
999efc |
This package contains the Leak Sanitizer library
|
|
|
999efc |
which is used for -fsanitize=leak instrumented programs.
|
|
|
999efc |
|
|
|
999efc |
%package -n %{?scl_prefix}liblsan-devel
|
|
|
999efc |
Summary: The Leak Sanitizer static library
|
|
|
999efc |
Requires: liblsan%{_isa} >= 5.1.1
|
|
|
999efc |
|
|
|
999efc |
%description -n %{?scl_prefix}liblsan-devel
|
|
|
999efc |
This package contains Leak Sanitizer static runtime library.
|
|
|
999efc |
|
|
|
999efc |
|
|
|
999efc |
%prep
|
|
|
999efc |
%if 0%{?rhel} >= 7
|
|
|
999efc |
%setup -q -n gcc-%{version}-%{DATE} -a 1
|
|
|
999efc |
%else
|
|
|
999efc |
%setup -q -n gcc-%{version}-%{DATE} -a 1 -a 2 -a 3 -a 5 -a 6
|
|
|
999efc |
%endif
|
|
|
999efc |
%patch0 -p0 -b .hack~
|
|
|
999efc |
%patch1 -p0 -b .i386-libgomp~
|
|
|
999efc |
%patch2 -p0 -b .sparc-config-detection~
|
|
|
999efc |
%patch3 -p0 -b .libgomp-omp_h-multilib~
|
|
|
999efc |
%patch4 -p0 -b .libtool-no-rpath~
|
|
|
999efc |
%if %{build_isl}
|
|
|
999efc |
%patch5 -p0 -b .isl-dl~
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libstdcxx_docs}
|
|
|
999efc |
%patch6 -p0 -b .libstdc++-docs~
|
|
|
999efc |
%endif
|
|
|
999efc |
%patch7 -p0 -b .no-add-needed~
|
|
|
999efc |
%patch8 -p0 -b .foffload-default~
|
|
|
999efc |
%patch9 -p0 -b .Wno-format-security~
|
|
|
999efc |
%if 0%{?fedora} >= 29 || 0%{?rhel} > 7
|
|
|
999efc |
%patch10 -p0 -b .rh1574936~
|
|
|
999efc |
%endif
|
|
|
999efc |
%patch11 -p0 -b .d-shared-libphobos~
|
|
|
999efc |
%patch12 -p0 -b .pr94540~
|
|
|
999efc |
%patch13 -p0 -b .pr96383~
|
|
|
e9307e |
%patch14 -p0 -b .pr97524~
|
|
|
e9307e |
%patch15 -p0 -b .SIZE_MAX~
|
|
|
999efc |
|
|
|
999efc |
%patch1000 -p0 -b .libstdc++-compat~
|
|
|
999efc |
%ifarch %{ix86} x86_64
|
|
|
999efc |
%if 0%{?rhel} < 7
|
|
|
999efc |
# On i?86/x86_64 there are some incompatibilities in _Decimal* as well as
|
|
|
999efc |
# aggregates containing larger vector passing.
|
|
|
999efc |
%patch1001 -p0 -b .alt-compat-test~
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_isl}
|
|
|
999efc |
%patch1002 -p0 -b .isl-dl2~
|
|
|
999efc |
%endif
|
|
|
999efc |
%patch1003 -p0 -b .libgfortran-compat~
|
|
|
999efc |
%patch1004 -p0 -b .libgfortran-compat-2~
|
|
|
999efc |
|
|
|
999efc |
%if %{build_libstdcxx_docs}
|
|
|
999efc |
%if 0%{?rhel} < 7
|
|
|
999efc |
cd doxygen-%{doxygen_version}
|
|
|
999efc |
%patch2001 -p1 -b .config~
|
|
|
999efc |
%patch2002 -p1 -b .timestamp~
|
|
|
999efc |
%patch2003 -p1 -b .rh856725~
|
|
|
999efc |
cd ..
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%patch3001 -p1 -b .fortran01~
|
|
|
999efc |
%patch3002 -p1 -b .fortran02~
|
|
|
999efc |
%patch3003 -p1 -b .fortran03~
|
|
|
999efc |
%patch3004 -p1 -b .fortran04~
|
|
|
999efc |
%patch3005 -p1 -b .fortran05~
|
|
|
999efc |
%patch3006 -p1 -b .fortran06~
|
|
|
999efc |
%patch3007 -p1 -b .fortran07~
|
|
|
999efc |
%patch3008 -p1 -b .fortran08~
|
|
|
999efc |
%patch3009 -p1 -b .fortran09~
|
|
|
999efc |
%patch3010 -p1 -b .fortran10~
|
|
|
999efc |
|
|
|
999efc |
echo 'Red Hat %{version}-%{gcc_release}' > gcc/DEV-PHASE
|
|
|
999efc |
|
|
|
999efc |
%if 0%{?rhel} == 6
|
|
|
999efc |
# Default to -gdwarf-3 rather than -gdwarf-4
|
|
|
999efc |
sed -i '/UInteger Var(dwarf_version)/s/Init(4)/Init(3)/' gcc/common.opt
|
|
|
999efc |
sed -i 's/\(may be either 2, 3 or 4; the default version is \)4\./\13./' gcc/doc/invoke.texi
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
|
|
|
999efc |
cp -a libstdc++-v3/config/cpu/i{4,3}86/opt
|
|
|
999efc |
echo 'TM_H += $(srcdir)/config/rs6000/rs6000-modes.h' >> gcc/config/rs6000/t-rs6000
|
|
|
999efc |
|
|
|
999efc |
./contrib/gcc_update --touch
|
|
|
999efc |
|
|
|
999efc |
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
|
|
|
999efc |
|
|
|
999efc |
sed -i -e 's/Common Driver Var(flag_report_bug)/& Init(1)/' gcc/common.opt
|
|
|
999efc |
|
|
|
999efc |
%ifarch ppc
|
|
|
999efc |
if [ -d libstdc++-v3/config/abi/post/powerpc64-linux-gnu ]; then
|
|
|
999efc |
mkdir -p libstdc++-v3/config/abi/post/powerpc64-linux-gnu/64
|
|
|
999efc |
mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/{,64/}baseline_symbols.txt
|
|
|
999efc |
mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/{32/,}baseline_symbols.txt
|
|
|
999efc |
rm -rf libstdc++-v3/config/abi/post/powerpc64-linux-gnu/32
|
|
|
999efc |
fi
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparc
|
|
|
999efc |
if [ -d libstdc++-v3/config/abi/post/sparc64-linux-gnu ]; then
|
|
|
999efc |
mkdir -p libstdc++-v3/config/abi/post/sparc64-linux-gnu/64
|
|
|
999efc |
mv libstdc++-v3/config/abi/post/sparc64-linux-gnu/{,64/}baseline_symbols.txt
|
|
|
999efc |
mv libstdc++-v3/config/abi/post/sparc64-linux-gnu/{32/,}baseline_symbols.txt
|
|
|
999efc |
rm -rf libstdc++-v3/config/abi/post/sparc64-linux-gnu/32
|
|
|
999efc |
fi
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
# This test causes fork failures, because it spawns way too many threads
|
|
|
999efc |
rm -f gcc/testsuite/go.test/test/chan/goroutines.go
|
|
|
999efc |
|
|
|
999efc |
# These tests get stuck and don't timeout.
|
|
|
999efc |
%ifarch ppc ppc64 ppc64le
|
|
|
999efc |
rm -f libgomp/testsuite/libgomp.c/target-32.c
|
|
|
999efc |
rm -f libgomp/testsuite/libgomp.c/target-33.c
|
|
|
999efc |
rm -f libgomp/testsuite/libgomp.c/target-34.c
|
|
|
999efc |
rm -rf libgomp/testsuite/libgomp.oacc*
|
|
|
e9307e |
rm -rf libgomp/testsuite/libgomp.hsa.c*
|
|
|
e9307e |
rm -rf libgomp/testsuite/libgomp.graphite*
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%build
|
|
|
999efc |
|
|
|
999efc |
# Undo the broken autoconf change in recent Fedora versions
|
|
|
999efc |
export CONFIG_SITE=NONE
|
|
|
999efc |
|
|
|
999efc |
rm -fr obj-%{gcc_target_platform}
|
|
|
999efc |
mkdir obj-%{gcc_target_platform}
|
|
|
999efc |
cd obj-%{gcc_target_platform}
|
|
|
999efc |
|
|
|
999efc |
%if %{build_libstdcxx_docs}
|
|
|
999efc |
|
|
|
999efc |
%if 0%{?rhel} < 7
|
|
|
999efc |
mkdir doxygen-install
|
|
|
999efc |
pushd ../doxygen-%{doxygen_version}
|
|
|
999efc |
./configure --prefix `cd ..; pwd`/obj-%{gcc_target_platform}/doxygen-install \
|
|
|
999efc |
--shared --release --english-only
|
|
|
999efc |
|
|
|
999efc |
make %{?_smp_mflags} all
|
|
|
999efc |
make install
|
|
|
999efc |
popd
|
|
|
999efc |
export PATH=`pwd`/doxygen-install/bin/${PATH:+:${PATH}}
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%if 0%{?rhel} < 7
|
|
|
999efc |
# Build GMP for RHEL 6. Build it first because MPC and MPFR need it.
|
|
|
999efc |
mkdir gmp gmp-install
|
|
|
999efc |
cd gmp
|
|
|
999efc |
../../gmp-%{gmp_version}/configure --disable-shared --disable-assembly \
|
|
|
999efc |
CFLAGS="${CFLAGS:-%optflags} -fPIC" CXXFLAGS="${CXXFLAGS:-%optflags} -fPIC" \
|
|
|
999efc |
--prefix=`cd ..; pwd`/gmp-install
|
|
|
999efc |
make %{?_smp_mflags}
|
|
|
999efc |
make install
|
|
|
999efc |
cd ..
|
|
|
999efc |
|
|
|
999efc |
# It also needs MPFR.
|
|
|
999efc |
mkdir mpfr mpfr-install
|
|
|
999efc |
cd mpfr
|
|
|
999efc |
../../mpfr-%{mpfr_version}/configure --disable-shared \
|
|
|
999efc |
--with-gmp=`cd ..; pwd`/gmp-install \
|
|
|
999efc |
CFLAGS="${CFLAGS:-%optflags} -fPIC" CXXFLAGS="${CXXFLAGS:-%optflags} -fPIC" \
|
|
|
999efc |
--prefix=`cd ..; pwd`/mpfr-install
|
|
|
999efc |
make %{?_smp_mflags}
|
|
|
999efc |
make install
|
|
|
999efc |
cd ..
|
|
|
999efc |
|
|
|
999efc |
mkdir mpc mpc-install
|
|
|
999efc |
cd mpc
|
|
|
999efc |
../../mpc-%{mpc_version}/configure --disable-shared \
|
|
|
999efc |
--with-mpfr=`cd ..; pwd`/mpfr-install \
|
|
|
999efc |
--with-gmp=`cd ..; pwd`/gmp-install \
|
|
|
999efc |
CFLAGS="${CFLAGS:-%optflags} -fPIC" CXXFLAGS="${CXXFLAGS:-%optflags} -fPIC" \
|
|
|
999efc |
--prefix=`cd ..; pwd`/mpc-install
|
|
|
999efc |
make %{?_smp_mflags}
|
|
|
999efc |
make install
|
|
|
999efc |
cd ..
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%if %{build_isl}
|
|
|
999efc |
mkdir isl-build isl-install
|
|
|
999efc |
%ifarch s390 s390x
|
|
|
999efc |
ISL_FLAG_PIC=-fPIC
|
|
|
999efc |
%else
|
|
|
999efc |
ISL_FLAG_PIC=-fpic
|
|
|
999efc |
%endif
|
|
|
999efc |
cd isl-build
|
|
|
999efc |
sed -i 's|libisl|libgcc7privateisl|g' \
|
|
|
999efc |
../../isl-%{isl_version}/Makefile.{am,in}
|
|
|
999efc |
../../isl-%{isl_version}/configure \
|
|
|
999efc |
CC=/usr/bin/gcc CXX=/usr/bin/g++ \
|
|
|
999efc |
CFLAGS="${CFLAGS:-%optflags} $ISL_FLAG_PIC" --prefix=`cd ..; pwd`/isl-install
|
|
|
999efc |
make %{?_smp_mflags}
|
|
|
999efc |
make install
|
|
|
999efc |
cd ../isl-install/lib
|
|
|
999efc |
rm libgcc7privateisl.so{,.15}
|
|
|
999efc |
mv libgcc7privateisl.so.15.1.1 libisl.so.15
|
|
|
999efc |
ln -sf libisl.so.15 libisl.so
|
|
|
999efc |
cd ../..
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%ifnarch s390
|
|
|
999efc |
%{?scl:PATH=%{_bindir}${PATH:+:${PATH}}}
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
CC=gcc
|
|
|
999efc |
CXX=g++
|
|
|
999efc |
OPT_FLAGS=`echo %{optflags}|sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[12]//g'`
|
|
|
999efc |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-flto=auto//g;s/-flto//g;s/-ffat-lto-objects//g'`
|
|
|
999efc |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-m64//g;s/-m32//g;s/-m31//g'`
|
|
|
999efc |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mfpmath=sse/-mfpmath=sse -msse2/g'`
|
|
|
999efc |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/ -pipe / /g'`
|
|
|
999efc |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Werror=format-security/-Wformat-security/g'`
|
|
|
999efc |
%ifarch sparc
|
|
|
999efc |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mcpu=ultrasparc/-mtune=ultrasparc/g;s/-mcpu=v[78]//g'`
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{ix86}
|
|
|
999efc |
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-march=i.86//g'`
|
|
|
999efc |
%endif
|
|
|
999efc |
OPT_FLAGS=`echo "$OPT_FLAGS" | sed -e 's/[[:blank:]]\+/ /g'`
|
|
|
999efc |
case "$OPT_FLAGS" in
|
|
|
999efc |
*-fasynchronous-unwind-tables*)
|
|
|
999efc |
sed -i -e 's/-fno-exceptions /-fno-exceptions -fno-asynchronous-unwind-tables /' \
|
|
|
999efc |
../libgcc/Makefile.in
|
|
|
999efc |
;;
|
|
|
999efc |
esac
|
|
|
999efc |
CONFIGURE_OPTS="\
|
|
|
999efc |
--prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
|
|
|
999efc |
--with-bugurl=http://bugzilla.redhat.com/bugzilla \
|
|
|
999efc |
--enable-shared --enable-threads=posix --enable-checking=release \
|
|
|
999efc |
%ifarch ppc64le
|
|
|
999efc |
--enable-targets=powerpcle-linux \
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ppc64le %{mips} s390x
|
|
|
999efc |
--disable-multilib \
|
|
|
999efc |
%else
|
|
|
999efc |
--enable-multilib \
|
|
|
999efc |
%endif
|
|
|
999efc |
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions \
|
|
|
999efc |
--enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only \
|
|
|
999efc |
%ifnarch %{mips}
|
|
|
999efc |
--with-linker-hash-style=gnu \
|
|
|
999efc |
%endif
|
|
|
999efc |
%if 0%{?rhel} <= 7
|
|
|
999efc |
--with-default-libstdcxx-abi=gcc4-compatible \
|
|
|
999efc |
%endif
|
|
|
999efc |
--enable-plugin --enable-initfini-array \
|
|
|
999efc |
%if %{build_isl}
|
|
|
999efc |
--with-isl=`pwd`/isl-install \
|
|
|
999efc |
%else
|
|
|
999efc |
--without-isl \
|
|
|
999efc |
%endif
|
|
|
999efc |
--disable-libmpx \
|
|
|
999efc |
%if 0%{?rhel} < 7
|
|
|
999efc |
--with-mpc=`pwd`/mpc-install \
|
|
|
999efc |
--with-mpfr=`pwd`/mpfr-install \
|
|
|
999efc |
--with-gmp=`pwd`/gmp-install \
|
|
|
999efc |
%endif
|
|
|
999efc |
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
|
|
|
999efc |
%if %{attr_ifunc}
|
|
|
999efc |
--enable-gnu-indirect-function \
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{arm}
|
|
|
999efc |
--disable-sjlj-exceptions \
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ppc ppc64 ppc64le ppc64p7
|
|
|
999efc |
--enable-secureplt \
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparc sparcv9 sparc64 ppc ppc64 ppc64le ppc64p7 s390 s390x alpha
|
|
|
999efc |
--with-long-double-128 \
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparc
|
|
|
999efc |
--disable-linux-futex \
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparc64
|
|
|
999efc |
--with-cpu=ultrasparc \
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparc sparcv9
|
|
|
999efc |
--host=%{gcc_target_platform} --build=%{gcc_target_platform} --target=%{gcc_target_platform} --with-cpu=v7
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ppc ppc64 ppc64p7
|
|
|
999efc |
%if 0%{?rhel} >= 7
|
|
|
999efc |
--with-cpu-32=power7 --with-tune-32=power7 --with-cpu-64=power7 --with-tune-64=power7 \
|
|
|
999efc |
%endif
|
|
|
999efc |
%if 0%{?rhel} == 6
|
|
|
999efc |
--with-cpu-32=power4 --with-tune-32=power6 --with-cpu-64=power4 --with-tune-64=power6 \
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ppc64le
|
|
|
999efc |
--with-cpu-32=power8 --with-tune-32=power8 --with-cpu-64=power8 --with-tune-64=power8 \
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ppc
|
|
|
999efc |
--build=%{gcc_target_platform} --target=%{gcc_target_platform} --with-cpu=default32
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{ix86} x86_64
|
|
|
999efc |
--with-tune=generic \
|
|
|
999efc |
%endif
|
|
|
999efc |
%if 0%{?rhel} >= 7
|
|
|
999efc |
%ifarch %{ix86}
|
|
|
999efc |
--with-arch=x86-64 \
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch x86_64
|
|
|
999efc |
--with-arch_32=x86-64 \
|
|
|
999efc |
%endif
|
|
|
999efc |
%else
|
|
|
999efc |
%ifarch %{ix86}
|
|
|
999efc |
--with-arch=i686 \
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch x86_64
|
|
|
999efc |
--with-arch_32=i686 \
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch s390 s390x
|
|
|
999efc |
%if 0%{?rhel} >= 7
|
|
|
999efc |
%if 0%{?rhel} > 7
|
|
|
999efc |
--with-arch=z13 --with-tune=z14 \
|
|
|
999efc |
%else
|
|
|
999efc |
--with-arch=z196 --with-tune=zEC12 \
|
|
|
999efc |
%endif
|
|
|
999efc |
%else
|
|
|
999efc |
%if 0%{?fedora} >= 26
|
|
|
999efc |
--with-arch=zEC12 --with-tune=z13 \
|
|
|
999efc |
%else
|
|
|
999efc |
--with-arch=z9-109 --with-tune=z10 \
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
--enable-decimal-float \
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch armv7hl
|
|
|
999efc |
--with-tune=generic-armv7-a --with-arch=armv7-a \
|
|
|
999efc |
--with-float=hard --with-fpu=vfpv3-d16 --with-abi=aapcs-linux \
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch mips mipsel
|
|
|
999efc |
--with-arch=mips32r2 --with-fp-32=xx \
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch mips64 mips64el
|
|
|
999efc |
--with-arch=mips64r2 --with-abi=64 \
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch riscv64
|
|
|
999efc |
--with-arch=rv64gc --with-abi=lp64d --with-multilib-list=lp64d \
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifnarch sparc sparcv9 ppc
|
|
|
999efc |
--build=%{gcc_target_platform} \
|
|
|
999efc |
%endif
|
|
|
999efc |
"
|
|
|
999efc |
|
|
|
999efc |
CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
|
|
|
999efc |
CXXFLAGS="`echo " $OPT_FLAGS " | sed 's/ -Wall / /g;s/ -fexceptions / /g' \
|
|
|
999efc |
| sed 's/ -Wformat-security / -Wformat -Wformat-security /'`" \
|
|
|
999efc |
XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
|
|
|
999efc |
../configure --enable-bootstrap \
|
|
|
999efc |
--enable-languages=c,c++,fortran,lto \
|
|
|
999efc |
$CONFIGURE_OPTS
|
|
|
999efc |
|
|
|
999efc |
%ifarch sparc sparcv9 sparc64
|
|
|
999efc |
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" bootstrap
|
|
|
999efc |
%else
|
|
|
999efc |
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" profiledbootstrap
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%if 0%{?rhel} <= 8
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libstdc++.so.6 -lstdc++_nonshared%{nonsharedver} )' \
|
|
|
999efc |
> %{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++_system.so
|
|
|
999efc |
|
|
|
999efc |
# Relink libcc1 against -lstdc++_nonshared:
|
|
|
999efc |
sed -i -e '/^postdeps/s/-lstdc++/-lstdc++_system/' libcc1/libtool
|
|
|
999efc |
rm -f libcc1/libcc1.la
|
|
|
999efc |
make -C libcc1 libcc1.la
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
CC="`%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags --build-cc`"
|
|
|
999efc |
CXX="`%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags --build-cxx` `%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags --build-includes`"
|
|
|
999efc |
|
|
|
999efc |
# Build libgccjit separately, so that normal compiler binaries aren't -fpic
|
|
|
999efc |
# unnecessarily.
|
|
|
999efc |
mkdir objlibgccjit
|
|
|
999efc |
cd objlibgccjit
|
|
|
999efc |
CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
|
|
|
999efc |
CXXFLAGS="`echo " $OPT_FLAGS " | sed 's/ -Wall / /g;s/ -fexceptions / /g' \
|
|
|
999efc |
| sed 's/ -Wformat-security / -Wformat -Wformat-security /'`" \
|
|
|
999efc |
XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
|
|
|
999efc |
../../configure --disable-bootstrap --enable-host-shared \
|
|
|
999efc |
--enable-languages=jit $CONFIGURE_OPTS
|
|
|
999efc |
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" all-gcc
|
|
|
999efc |
cp -a gcc/libgccjit.so* ../gcc/
|
|
|
999efc |
cd ../gcc/
|
|
|
999efc |
ln -sf xgcc %{gcc_target_platform}-gcc-%{gcc_major}
|
|
|
999efc |
cp -a Makefile{,.orig}
|
|
|
999efc |
sed -i -e '/^CHECK_TARGETS/s/$/ check-jit/' Makefile
|
|
|
999efc |
touch -r Makefile.orig Makefile
|
|
|
999efc |
rm Makefile.orig
|
|
|
999efc |
make jit.sphinx.html
|
|
|
999efc |
make jit.sphinx.install-html jit_htmldir=`pwd`/../../rpm.doc/libgccjit-devel/html
|
|
|
999efc |
cd ..
|
|
|
999efc |
|
|
|
999efc |
%if %{build_isl}
|
|
|
999efc |
cp -a isl-install/lib/libisl.so.15 gcc/
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
# Make generated man pages even if Pod::Man is not new enough
|
|
|
999efc |
perl -pi -e 's/head3/head2/' ../contrib/texi2pod.pl
|
|
|
999efc |
for i in ../gcc/doc/*.texi; do
|
|
|
999efc |
cp -a $i $i.orig; sed 's/ftable/table/' $i.orig > $i
|
|
|
999efc |
done
|
|
|
999efc |
make -C gcc generated-manpages
|
|
|
999efc |
for i in ../gcc/doc/*.texi; do mv -f $i.orig $i; done
|
|
|
999efc |
|
|
|
999efc |
# Make generated doxygen pages.
|
|
|
999efc |
%if %{build_libstdcxx_docs}
|
|
|
999efc |
cd %{gcc_target_platform}/libstdc++-v3
|
|
|
999efc |
make doc-html-doxygen
|
|
|
999efc |
make doc-man-doxygen
|
|
|
999efc |
cd ../..
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
# Copy various doc files here and there
|
|
|
999efc |
cd ..
|
|
|
999efc |
mkdir -p rpm.doc/gfortran rpm.doc/libquadmath rpm.doc/libitm
|
|
|
999efc |
mkdir -p rpm.doc/changelogs/{gcc/cp,gcc/jit,libstdc++-v3,libgomp,libcc1,libatomic,libsanitizer}
|
|
|
999efc |
|
|
|
999efc |
for i in {gcc,gcc/cp,gcc/jit,libstdc++-v3,libgomp,libcc1,libatomic,libsanitizer}/ChangeLog*; do
|
|
|
999efc |
cp -p $i rpm.doc/changelogs/$i
|
|
|
999efc |
done
|
|
|
999efc |
|
|
|
999efc |
(cd gcc/fortran; for i in ChangeLog*; do
|
|
|
999efc |
cp -p $i ../../rpm.doc/gfortran/$i
|
|
|
999efc |
done)
|
|
|
999efc |
(cd libgfortran; for i in ChangeLog*; do
|
|
|
999efc |
cp -p $i ../rpm.doc/gfortran/$i.libgfortran
|
|
|
999efc |
done)
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
(cd libquadmath; for i in ChangeLog* COPYING.LIB; do
|
|
|
999efc |
cp -p $i ../rpm.doc/libquadmath/$i.libquadmath
|
|
|
999efc |
done)
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libitm}
|
|
|
999efc |
(cd libitm; for i in ChangeLog*; do
|
|
|
999efc |
cp -p $i ../rpm.doc/libitm/$i.libitm
|
|
|
999efc |
done)
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
rm -f rpm.doc/changelogs/gcc/ChangeLog.[1-9]
|
|
|
999efc |
find rpm.doc -name \*ChangeLog\* | xargs bzip2 -9
|
|
|
999efc |
|
|
|
999efc |
# Test the nonshared bits.
|
|
|
999efc |
mkdir libstdc++_compat_test
|
|
|
999efc |
cd libstdc++_compat_test
|
|
|
999efc |
readelf -Ws %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libstdc++.so.6 | sed -n '/\.symtab/,$d;/ UND /d;/@GLIBC_PRIVATE/d;/\(GLOBAL\|WEAK\|UNIQUE\)/p' | awk '{ if ($4 == "OBJECT") { printf "%s %s %s %s %s\n", $8, $4, $5, $6, $3 } else { printf "%s %s %s %s\n", $8, $4, $5, $6 }}' | sed 's/ UNIQUE / GLOBAL /;s/ WEAK / GLOBAL /;s/@@GLIBCXX_[0-9.]*//;s/@@CXXABI_TM_[0-9.]*//;s/@@CXXABI_FLOAT128//;s/@@CXXABI_[0-9.]*//' | LC_ALL=C sort -u > system.abilist
|
|
|
999efc |
readelf -Ws ../obj-%{gcc_target_platform}/%{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++.so.6 | sed -n '/\.symtab/,$d;/ UND /d;/@GLIBC_PRIVATE/d;/\(GLOBAL\|WEAK\|UNIQUE\)/p' | awk '{ if ($4 == "OBJECT") { printf "%s %s %s %s %s\n", $8, $4, $5, $6, $3 } else { printf "%s %s %s %s\n", $8, $4, $5, $6 }}' | sed 's/ UNIQUE / GLOBAL /;s/ WEAK / GLOBAL /;s/@@GLIBCXX_[0-9.]*//;s/@@CXXABI_TM_[0-9.]*//;s/@@CXXABI_FLOAT128//;s/@@CXXABI_[0-9.]*//' | LC_ALL=C sort -u > vanilla.abilist
|
|
|
999efc |
diff -up system.abilist vanilla.abilist | awk '/^\+\+\+/{next}/^\+/{print gensub(/^+(.*)$/,"\\1","1",$0)}' > system2vanilla.abilist.diff
|
|
|
999efc |
../obj-%{gcc_target_platform}/gcc/xgcc -B ../obj-%{gcc_target_platform}/gcc/ -shared -o libstdc++_nonshared.so -Wl,--whole-archive ../obj-%{gcc_target_platform}/%{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++_nonshared%{nonsharedver}.a -Wl,--no-whole-archive %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libstdc++.so.6
|
|
|
999efc |
readelf -Ws libstdc++_nonshared.so | sed -n '/\.symtab/,$d;/ UND /d;/@GLIBC_PRIVATE/d;/\(GLOBAL\|WEAK\|UNIQUE\)/p' | awk '{ if ($4 == "OBJECT") { printf "%s %s %s %s %s\n", $8, $4, $5, $6, $3 } else { printf "%s %s %s %s\n", $8, $4, $5, $6 }}' | sed 's/ UNIQUE / GLOBAL /;s/ WEAK / GLOBAL /;s/@@GLIBCXX_[0-9.]*//;s/@@CXXABI_TM_[0-9.]*//;s/@@CXXABI_FLOAT128//;s/@@CXXABI_[0-9.]*//' | LC_ALL=C sort -u > nonshared.abilist
|
|
|
999efc |
echo ====================NONSHARED=========================
|
|
|
999efc |
ldd -d -r ./libstdc++_nonshared.so || :
|
|
|
999efc |
ldd -u ./libstdc++_nonshared.so || :
|
|
|
999efc |
diff -up system2vanilla.abilist.diff nonshared.abilist || :
|
|
|
999efc |
readelf -Ws ../obj-%{gcc_target_platform}/%{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++_nonshared%{nonsharedver}.a | grep HIDDEN.*UND | grep -v __dso_handle || :
|
|
|
999efc |
echo ====================NONSHARED END=====================
|
|
|
999efc |
rm -f libstdc++_nonshared.so
|
|
|
999efc |
cd ..
|
|
|
999efc |
|
|
|
999efc |
%install
|
|
|
999efc |
rm -rf %{buildroot}
|
|
|
999efc |
|
|
|
999efc |
%if %{build_libstdcxx_docs}
|
|
|
999efc |
%if 0%{?rhel} < 7
|
|
|
999efc |
export PATH=`pwd`/obj-%{gcc_target_platform}/doxygen-install/bin/${PATH:+:${PATH}}
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%{?scl:PATH=%{_bindir}${PATH:+:${PATH}}}
|
|
|
999efc |
# Also set LD_LIBRARY_PATH so that DTS eu-strip (called from find-debuginfo.sh)
|
|
|
999efc |
# can find the libraries it needs.
|
|
|
999efc |
%{?scl:export LD_LIBRARY_PATH=%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}}
|
|
|
999efc |
|
|
|
999efc |
perl -pi -e \
|
|
|
999efc |
's~href="l(ibstdc|atest)~href="http://gcc.gnu.org/onlinedocs/libstdc++/l\1~' \
|
|
|
999efc |
libstdc++-v3/doc/html/api.html
|
|
|
999efc |
|
|
|
999efc |
cd obj-%{gcc_target_platform}
|
|
|
999efc |
|
|
|
999efc |
TARGET_PLATFORM=%{gcc_target_platform}
|
|
|
999efc |
|
|
|
999efc |
# There are some MP bugs in libstdc++ Makefiles
|
|
|
999efc |
make -C %{gcc_target_platform}/libstdc++-v3
|
|
|
999efc |
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
rm -f gcc/libgcc_s.so
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat}
|
|
|
999efc |
GROUP ( /%{_lib}/libgcc_s.so.1 libgcc.a )' > gcc/libgcc_s.so
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
make prefix=%{buildroot}%{_prefix} mandir=%{buildroot}%{_mandir} \
|
|
|
999efc |
infodir=%{buildroot}%{_infodir} install
|
|
|
999efc |
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
rm -f gcc/libgcc_s.so
|
|
|
999efc |
ln -sf libgcc_s.so.1 gcc/libgcc_s.so
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
FULLPATH=%{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
FULLEPATH=%{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
ln -sf ../../../../bin/ar $FULLEPATH/ar
|
|
|
999efc |
ln -sf ../../../../bin/as $FULLEPATH/as
|
|
|
999efc |
ln -sf ../../../../bin/ld $FULLEPATH/ld
|
|
|
999efc |
ln -sf ../../../../bin/ld.bfd $FULLEPATH/ld.bfd
|
|
|
999efc |
ln -sf ../../../../bin/ld.gold $FULLEPATH/ld.gold
|
|
|
999efc |
ln -sf ../../../../bin/nm $FULLEPATH/nm
|
|
|
999efc |
ln -sf ../../../../bin/objcopy $FULLEPATH/objcopy
|
|
|
999efc |
ln -sf ../../../../bin/ranlib $FULLEPATH/ranlib
|
|
|
999efc |
ln -sf ../../../../bin/strip $FULLEPATH/strip
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%if %{build_isl}
|
|
|
999efc |
cp -a isl-install/lib/libisl.so.15 $FULLPATH/
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
# fix some things
|
|
|
999efc |
ln -sf gcc %{buildroot}%{_prefix}/bin/cc
|
|
|
999efc |
mkdir -p %{buildroot}/lib
|
|
|
999efc |
ln -sf ..%{_prefix}/bin/cpp %{buildroot}/lib/cpp
|
|
|
999efc |
ln -sf gfortran %{buildroot}%{_prefix}/bin/f95
|
|
|
999efc |
rm -f %{buildroot}%{_infodir}/dir
|
|
|
999efc |
gzip -9 %{buildroot}%{_infodir}/*.info*
|
|
|
999efc |
ln -sf gcc %{buildroot}%{_prefix}/bin/gnatgcc
|
|
|
999efc |
|
|
|
999efc |
cxxconfig="`find %{gcc_target_platform}/libstdc++-v3/include -name c++config.h`"
|
|
|
999efc |
for i in `find %{gcc_target_platform}/[36]*/libstdc++-v3/include -name c++config.h 2>/dev/null`; do
|
|
|
999efc |
if ! diff -up $cxxconfig $i; then
|
|
|
999efc |
cat > %{buildroot}%{_prefix}/include/c++/%{gcc_major}/%{gcc_target_platform}/bits/c++config.h <
|
|
|
999efc |
#ifndef _CPP_CPPCONFIG_WRAPPER
|
|
|
999efc |
#define _CPP_CPPCONFIG_WRAPPER 1
|
|
|
999efc |
#include <bits/wordsize.h>
|
|
|
999efc |
#if __WORDSIZE == 32
|
|
|
999efc |
%ifarch %{multilib_64_archs}
|
|
|
999efc |
`cat $(find %{gcc_target_platform}/32/libstdc++-v3/include -name c++config.h)`
|
|
|
999efc |
%else
|
|
|
999efc |
`cat $(find %{gcc_target_platform}/libstdc++-v3/include -name c++config.h)`
|
|
|
999efc |
%endif
|
|
|
999efc |
#else
|
|
|
999efc |
%ifarch %{multilib_64_archs}
|
|
|
999efc |
`cat $(find %{gcc_target_platform}/libstdc++-v3/include -name c++config.h)`
|
|
|
999efc |
%else
|
|
|
999efc |
`cat $(find %{gcc_target_platform}/64/libstdc++-v3/include -name c++config.h)`
|
|
|
999efc |
%endif
|
|
|
999efc |
#endif
|
|
|
999efc |
#endif
|
|
|
999efc |
EOF
|
|
|
999efc |
break
|
|
|
999efc |
fi
|
|
|
999efc |
done
|
|
|
999efc |
|
|
|
999efc |
for f in `find %{buildroot}%{_prefix}/include/c++/%{gcc_major}/%{gcc_target_platform}/ -name c++config.h`; do
|
|
|
999efc |
for i in 1 2 4 8; do
|
|
|
999efc |
sed -i -e 's/#define _GLIBCXX_ATOMIC_BUILTINS_'$i' 1/#ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_'$i'\
|
|
|
999efc |
&\
|
|
|
999efc |
#endif/' $f
|
|
|
999efc |
done
|
|
|
999efc |
%if 0%{?rhel} <= 7
|
|
|
999efc |
# Force the old ABI unconditionally, the new one does not work in the
|
|
|
999efc |
# libstdc++_nonshared.a model against RHEL 6/7 libstdc++.so.6.
|
|
|
999efc |
sed -i -e 's/\(define[[:blank:]]*_GLIBCXX_USE_DUAL_ABI[[:blank:]]*\)1/\10/' $f
|
|
|
999efc |
%endif
|
|
|
999efc |
done
|
|
|
999efc |
|
|
|
999efc |
# Nuke bits/*.h.gch dirs
|
|
|
999efc |
# 1) there is no bits/*.h header installed, so when gch file can't be
|
|
|
999efc |
# used, compilation fails
|
|
|
999efc |
# 2) sometimes it is hard to match the exact options used for building
|
|
|
999efc |
# libstdc++-v3 or they aren't desirable
|
|
|
999efc |
# 3) there are multilib issues, conflicts etc. with this
|
|
|
999efc |
# 4) it is huge
|
|
|
999efc |
# People can always precompile on their own whatever they want, but
|
|
|
999efc |
# shipping this for everybody is unnecessary.
|
|
|
999efc |
rm -rf %{buildroot}%{_prefix}/include/c++/%{gcc_major}/%{gcc_target_platform}/bits/*.h.gch
|
|
|
999efc |
|
|
|
999efc |
%if %{build_libstdcxx_docs}
|
|
|
999efc |
libstdcxx_doc_builddir=%{gcc_target_platform}/libstdc++-v3/doc/doxygen
|
|
|
999efc |
mkdir -p ../rpm.doc/libstdc++-v3
|
|
|
999efc |
cp -r -p ../libstdc++-v3/doc/html ../rpm.doc/libstdc++-v3/html
|
|
|
999efc |
cp -r -p $libstdcxx_doc_builddir/html ../rpm.doc/libstdc++-v3/html/api
|
|
|
999efc |
mkdir -p %{buildroot}%{_mandir}/man3
|
|
|
999efc |
cp -r -p $libstdcxx_doc_builddir/man/man3/* %{buildroot}%{_mandir}/man3/
|
|
|
999efc |
find ../rpm.doc/libstdc++-v3 -name \*~ | xargs rm
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%ifarch sparcv9 sparc64
|
|
|
999efc |
ln -f %{buildroot}%{_prefix}/bin/%{gcc_target_platform}-gcc \
|
|
|
999efc |
%{buildroot}%{_prefix}/bin/sparc-%{_vendor}-%{_target_os}-gcc
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ppc ppc64 ppc64p7
|
|
|
999efc |
ln -f %{buildroot}%{_prefix}/bin/%{gcc_target_platform}-gcc \
|
|
|
999efc |
%{buildroot}%{_prefix}/bin/ppc-%{_vendor}-%{_target_os}-gcc
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%ifarch sparcv9 ppc
|
|
|
999efc |
FULLLPATH=$FULLPATH/lib32
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparc64 ppc64 ppc64p7
|
|
|
999efc |
FULLLPATH=$FULLPATH/lib64
|
|
|
999efc |
%endif
|
|
|
999efc |
if [ -n "$FULLLPATH" ]; then
|
|
|
999efc |
mkdir -p $FULLLPATH
|
|
|
999efc |
else
|
|
|
999efc |
FULLLPATH=$FULLPATH
|
|
|
999efc |
fi
|
|
|
999efc |
|
|
|
999efc |
find %{buildroot} -name \*.la | xargs rm -f
|
|
|
999efc |
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libgfortran.spec $FULLPATH/libgfortran.spec
|
|
|
999efc |
%if %{build_libitm}
|
|
|
999efc |
mv %{buildroot}%{_prefix}/%{_lib}/libitm.spec $FULLPATH/
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libasan}
|
|
|
999efc |
mv %{buildroot}%{_prefix}/%{_lib}/libsanitizer.spec $FULLPATH/
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
mkdir -p %{buildroot}/%{_lib}
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libgcc_s.so.1 %{buildroot}/%{_lib}/libgcc_s-%{gcc_major}-%{DATE}.so.1
|
|
|
999efc |
chmod 755 %{buildroot}/%{_lib}/libgcc_s-%{gcc_major}-%{DATE}.so.1
|
|
|
999efc |
ln -sf libgcc_s-%{gcc_major}-%{DATE}.so.1 %{buildroot}/%{_lib}/libgcc_s.so.1
|
|
|
999efc |
ln -sf /%{_lib}/libgcc_s.so.1 $FULLPATH/libgcc_s.so
|
|
|
999efc |
%ifarch sparcv9 ppc
|
|
|
999efc |
ln -sf /lib64/libgcc_s.so.1 $FULLPATH/64/libgcc_s.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{multilib_64_archs}
|
|
|
999efc |
ln -sf /lib/libgcc_s.so.1 $FULLPATH/32/libgcc_s.so
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
rm -f $FULLPATH/libgcc_s.so
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat}
|
|
|
999efc |
GROUP ( /%{_lib}/libgcc_s.so.1 libgcc.a )' > $FULLPATH/libgcc_s.so
|
|
|
999efc |
%ifarch sparcv9 ppc
|
|
|
999efc |
rm -f $FULLPATH/64/libgcc_s.so
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
GROUP ( /lib64/libgcc_s.so.1 libgcc.a )' > $FULLPATH/64/libgcc_s.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{multilib_64_archs}
|
|
|
999efc |
rm -f $FULLPATH/32/libgcc_s.so
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
GROUP ( /lib/libgcc_s.so.1 libgcc.a )' > $FULLPATH/32/libgcc_s.so
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libgomp.spec $FULLPATH/
|
|
|
999efc |
cp -a %{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++_nonshared%{nonsharedver}.a \
|
|
|
999efc |
$FULLLPATH/libstdc++_nonshared.a
|
|
|
e9307e |
cp -a %{gcc_target_platform}/libgfortran/.libs/libgfortran_nonshared80.a \
|
|
|
e9307e |
$FULLLPATH/libgfortran_nonshared.a
|
|
|
999efc |
|
|
|
999efc |
%if 0%{?rhel} <= 7
|
|
|
999efc |
# Build libgomp_nonshared.a with the system RHEL 7 compiler. Use -O2 to
|
|
|
999efc |
# get tailcalls.
|
|
|
999efc |
gcc %{SOURCE4} -O2 -c
|
|
|
999efc |
ar rcs libgomp_nonshared.a libgomp_nonshared.o
|
|
|
999efc |
cp -a libgomp_nonshared.a $FULLLPATH
|
|
|
999efc |
%ifarch x86_64
|
|
|
999efc |
# Only need this for -m32 on x86_64. devtoolset-N-gcc isn't multilib,
|
|
|
999efc |
# and we don't have a devtoolset-N-libgomp-devel subpackage.
|
|
|
999efc |
gcc %{SOURCE4} -O2 -c -m32 -o libgomp_nonshared32.o
|
|
|
999efc |
ar rcs libgomp_nonshared32.a libgomp_nonshared32.o
|
|
|
999efc |
cp -a libgomp_nonshared32.a $FULLLPATH/32/libgomp_nonshared.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
rm -f $FULLEPATH/libgccjit.so
|
|
|
999efc |
mkdir -p %{buildroot}%{_prefix}/%{_lib}/
|
|
|
999efc |
cp -a objlibgccjit/gcc/libgccjit.so.* %{buildroot}%{_prefix}/%{_lib}/
|
|
|
999efc |
rm -f $FULLPATH/libgccjit.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat}
|
|
|
999efc |
INPUT ( %{_prefix}/%{_lib}/libgccjit.so.0 )' > $FULLPATH/libgccjit.so
|
|
|
999efc |
cp -a ../gcc/jit/libgccjit*.h $FULLPATH/include/
|
|
|
999efc |
/usr/bin/install -c -m 644 objlibgccjit/gcc/doc/libgccjit.info %{buildroot}/%{_infodir}/
|
|
|
999efc |
gzip -9 %{buildroot}/%{_infodir}/libgccjit.info
|
|
|
999efc |
|
|
|
999efc |
|
|
|
999efc |
pushd $FULLPATH
|
|
|
999efc |
%if 0%{?rhel} <= 7
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libgomp.so.1 -lgomp_nonshared )' > libgomp.so
|
|
|
999efc |
%else
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libgomp.so.1 )' > libgomp.so
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%if 0%{?rhel} <= 8
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libstdc++.so.6 -lstdc++_nonshared )' > libstdc++.so
|
|
|
999efc |
%else
|
|
|
999efc |
echo '%{oformat}
|
|
|
999efc |
INPUT ( %{_root_prefix}/%{_lib}/libstdc++.so.6 )' > libstdc++.so
|
|
|
999efc |
%endif
|
|
|
999efc |
rm -f libgfortran.so
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat}
|
|
|
e9307e |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libgfortran.so.5 -lgfortran_nonshared )' > libgfortran.so
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
rm -f libquadmath.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat}
|
|
|
999efc |
%if 0%{!?scl:1}
|
|
|
999efc |
INPUT ( %{_prefix}/%{_lib}/libquadmath.so.0 )' > libquadmath.so
|
|
|
999efc |
%else
|
|
|
999efc |
%if 0%{?rhel} >= 7
|
|
|
999efc |
INPUT ( %{_root_prefix}/%{_lib}/libquadmath.so.0 )' > libquadmath.so
|
|
|
999efc |
%else
|
|
|
999efc |
INPUT ( libquadmath.a )' > libquadmath.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libitm}
|
|
|
999efc |
rm -f libitm.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libitm.so.1 )' > libitm.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libatomic}
|
|
|
999efc |
rm -f libatomic.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libatomic.so.1 )' > libatomic.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libasan}
|
|
|
999efc |
rm -f libasan.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libasan.so.6 )' > libasan.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libtsan}
|
|
|
999efc |
rm -f libtsan.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libtsan.so.0 )' > libtsan.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libubsan}
|
|
|
999efc |
rm -f libubsan.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libubsan.so.1 )' > libubsan.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_liblsan}
|
|
|
999efc |
rm -f liblsan.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/liblsan.so.0 )' > liblsan.so
|
|
|
999efc |
%endif
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++.*a $FULLLPATH/
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++fs.*a $FULLLPATH/
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libsupc++.*a .
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libgfortran.*a .
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libgomp.*a .
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libquadmath.*a $FULLLPATH/
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libitm}
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libitm.*a $FULLLPATH/
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libatomic}
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libatomic.*a $FULLLPATH/
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libasan}
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libasan.*a $FULLLPATH/
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libasan_preinit.o $FULLLPATH/
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libtsan}
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libtsan.*a $FULLPATH/
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libtsan_preinit.o $FULLPATH/
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libubsan}
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/libubsan.*a $FULLLPATH/
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_liblsan}
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/liblsan.*a $FULLPATH/
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/%{_lib}/liblsan_preinit.o $FULLPATH/
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%ifarch sparcv9 ppc
|
|
|
999efc |
%if 0%{?rhel} <= 8
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib64/libstdc++.so.6 -lstdc++_nonshared )' > 64/libstdc++.so
|
|
|
999efc |
%else
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{_root_prefix}/lib64/libstdc++.so.6 )' > 64/libstdc++.so
|
|
|
999efc |
%endif
|
|
|
999efc |
rm -f 64/libgfortran.so
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat2}
|
|
|
e9307e |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib64/libgfortran.so.5 -lgfortran_nonshared )' > 64/libgfortran.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib64/libgomp.so.1 )' > 64/libgomp.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{_prefix}/lib64/libgccjit.so.0 )' > 64/libgccjit.so
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
rm -f 64/libquadmath.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
%if 0%{!?scl:1}
|
|
|
999efc |
INPUT ( %{_prefix}/lib64/libquadmath.so.0 )' > 64/libquadmath.so
|
|
|
999efc |
%else
|
|
|
999efc |
%if 0%{?rhel} >= 7
|
|
|
999efc |
INPUT ( %{_root_prefix}/lib64/libquadmath.so.0 )' > 64/libquadmath.so
|
|
|
999efc |
%else
|
|
|
999efc |
INPUT ( libquadmath.a )' > 64/libquadmath.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libitm}
|
|
|
999efc |
rm -f 64/libitm.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib64/libitm.so.1 )' > 64/libitm.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libatomic}
|
|
|
999efc |
rm -f 64/libatomic.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib64/libatomic.so.1 )' > 64/libatomic.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libasan}
|
|
|
999efc |
rm -f 64/libasan.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib64/libasan.so.6 )' > 64/libasan.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libubsan}
|
|
|
999efc |
rm -f 64/libubsan.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib64/libubsan.so.1 )' > 64/libubsan.so
|
|
|
999efc |
%endif
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/lib64/libsupc++.*a 64/
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/lib64/libgfortran.*a 64/
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/lib64/libgomp.*a 64/
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/lib64/libquadmath.*a 64/
|
|
|
999efc |
%endif
|
|
|
999efc |
ln -sf lib32/libstdc++.a libstdc++.a
|
|
|
999efc |
ln -sf ../lib64/libstdc++.a 64/libstdc++.a
|
|
|
999efc |
ln -sf lib32/libstdc++fs.a libstdc++fs.a
|
|
|
999efc |
ln -sf ../lib64/libstdc++fs.a 64/libstdc++fs.a
|
|
|
999efc |
ln -sf lib32/libstdc++_nonshared.a libstdc++_nonshared.a
|
|
|
999efc |
ln -sf ../lib64/libstdc++_nonshared.a 64/libstdc++_nonshared.a
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
ln -sf lib32/libquadmath.a libquadmath.a
|
|
|
999efc |
ln -sf ../lib64/libquadmath.a 64/libquadmath.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libitm}
|
|
|
999efc |
ln -sf lib32/libitm.a libitm.a
|
|
|
999efc |
ln -sf ../lib64/libitm.a 64/libitm.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libatomic}
|
|
|
999efc |
ln -sf lib32/libatomic.a libatomic.a
|
|
|
999efc |
ln -sf ../lib64/libatomic.a 64/libatomic.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libasan}
|
|
|
999efc |
ln -sf lib32/libasan.a libasan.a
|
|
|
999efc |
ln -sf ../lib64/libasan.a 64/libasan.a
|
|
|
999efc |
ln -sf lib32/libasan_preinit.o libasan_preinit.o
|
|
|
999efc |
ln -sf ../lib64/libasan_preinit.o 64/libasan_preinit.o
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libubsan}
|
|
|
999efc |
ln -sf lib32/libubsan.a libubsan.a
|
|
|
999efc |
ln -sf ../lib64/libubsan.a 64/libubsan.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{multilib_64_archs}
|
|
|
999efc |
mkdir -p 32
|
|
|
999efc |
%if 0%{?rhel} <= 8
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/libstdc++.so.6 -lstdc++_nonshared )' > 32/libstdc++.so
|
|
|
999efc |
%else
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{_root_prefix}/lib/libstdc++.so.6 )' > 32/libstdc++.so
|
|
|
999efc |
%endif
|
|
|
999efc |
rm -f 32/libgfortran.so
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat2}
|
|
|
e9307e |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/libgfortran.so.5 -lgfortran_nonshared )' > 32/libgfortran.so
|
|
|
999efc |
|
|
|
999efc |
%if 0%{?rhel} <= 7
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/libgomp.so.1 -lgomp_nonshared )' > 32/libgomp.so
|
|
|
999efc |
%else
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/libgomp.so.1 )' > 32/libgomp.so
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{_prefix}/lib/libgccjit.so.0 )' > 32/libgccjit.so
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
rm -f 32/libquadmath.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
%if 0%{!?scl:1}
|
|
|
999efc |
INPUT ( %{_prefix}/lib/libquadmath.so.0 )' > 32/libquadmath.so
|
|
|
999efc |
%else
|
|
|
999efc |
%if 0%{?rhel} >= 7
|
|
|
999efc |
INPUT ( %{_root_prefix}/lib/libquadmath.so.0 )' > 32/libquadmath.so
|
|
|
999efc |
%else
|
|
|
999efc |
INPUT ( libquadmath.a )' > 32/libquadmath.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libitm}
|
|
|
999efc |
rm -f 32/libitm.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/libitm.so.1 )' > 32/libitm.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libatomic}
|
|
|
999efc |
rm -f 32/libatomic.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/libatomic.so.1 )' > 32/libatomic.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libasan}
|
|
|
999efc |
rm -f 32/libasan.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/libasan.so.6 )' > 32/libasan.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libubsan}
|
|
|
999efc |
rm -f 32/libubsan.so
|
|
|
999efc |
echo '/* GNU ld script */
|
|
|
999efc |
%{oformat2}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/libubsan.so.1 )' > 32/libubsan.so
|
|
|
999efc |
%endif
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/lib/libsupc++.*a 32/
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/lib/libgfortran.*a 32/
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/lib/libgomp.*a 32/
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
mv -f %{buildroot}%{_prefix}/lib/libquadmath.*a 32/
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparc64 ppc64
|
|
|
999efc |
ln -sf ../lib32/libstdc++.a 32/libstdc++.a
|
|
|
999efc |
ln -sf lib64/libstdc++.a libstdc++.a
|
|
|
999efc |
ln -sf ../lib32/libstdc++fs.a 32/libstdc++fs.a
|
|
|
999efc |
ln -sf lib64/libstdc++fs.a libstdc++fs.a
|
|
|
999efc |
%if 0%{?rhel} <= 8
|
|
|
999efc |
ln -sf ../lib32/libstdc++_nonshared.a 32/libstdc++_nonshared.a
|
|
|
999efc |
ln -sf lib64/libstdc++_nonshared.a libstdc++_nonshared.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%if 0%{?rhel} <= 7
|
|
|
e9307e |
ln -sf ../lib32/libgfortran_nonshared.a 32/libgfortran_nonshared.a
|
|
|
e9307e |
ln -sf lib64/libgfortran_nonshared.a libgfortran_nonshared.a
|
|
|
999efc |
ln -sf lib64/libgomp_nonshared.a libgomp_nonshared.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
ln -sf ../lib32/libquadmath.a 32/libquadmath.a
|
|
|
999efc |
ln -sf lib64/libquadmath.a libquadmath.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libitm}
|
|
|
999efc |
ln -sf ../lib32/libitm.a 32/libitm.a
|
|
|
999efc |
ln -sf lib64/libitm.a libitm.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libatomic}
|
|
|
999efc |
ln -sf ../lib32/libatomic.a 32/libatomic.a
|
|
|
999efc |
ln -sf lib64/libatomic.a libatomic.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libasan}
|
|
|
999efc |
ln -sf ../lib32/libasan.a 32/libasan.a
|
|
|
999efc |
ln -sf lib64/libasan.a libasan.a
|
|
|
999efc |
ln -sf ../lib32/libasan_preinit.o 32/libasan_preinit.o
|
|
|
999efc |
ln -sf lib64/libasan_preinit.o libasan_preinit.o
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libubsan}
|
|
|
999efc |
ln -sf ../lib32/libubsan.a 32/libubsan.a
|
|
|
999efc |
ln -sf lib64/libubsan.a libubsan.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%else
|
|
|
999efc |
%ifarch %{multilib_64_archs}
|
|
|
999efc |
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libstdc++.a 32/libstdc++.a
|
|
|
999efc |
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libstdc++fs.a 32/libstdc++fs.a
|
|
|
999efc |
%if 0%{?rhel} <= 8
|
|
|
999efc |
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libstdc++_nonshared.a 32/libstdc++_nonshared.a
|
|
|
999efc |
%endif
|
|
|
e9307e |
%if 0%{?rhel} <= 7
|
|
|
e9307e |
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libgfortran_nonshared.a 32/libgfortran_nonshared.a
|
|
|
e9307e |
%endif
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libquadmath.a 32/libquadmath.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libitm}
|
|
|
999efc |
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libitm.a 32/libitm.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libatomic}
|
|
|
999efc |
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libatomic.a 32/libatomic.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libasan}
|
|
|
999efc |
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libasan.a 32/libasan.a
|
|
|
999efc |
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libasan_preinit.o 32/libasan_preinit.o
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libubsan}
|
|
|
999efc |
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}/%{gcc_major}/libubsan.a 32/libubsan.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
# If we are building a debug package then copy all of the static archives
|
|
|
999efc |
# into the debug directory to keep them as unstripped copies.
|
|
|
999efc |
%if 0%{?_enable_debug_packages}
|
|
|
999efc |
mkdir -p $RPM_BUILD_ROOT%{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/debug%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
adirs="$FULLPATH"
|
|
|
999efc |
if [ $FULLLPATH -ne $FULLPATH ]; then
|
|
|
999efc |
adirs="$adirs $FULLLPATH"
|
|
|
999efc |
fi
|
|
|
999efc |
for f in `find $adirs -maxdepth 1 -a \
|
|
|
999efc |
\( -name libgfortran.a -o -name libgomp.a \
|
|
|
999efc |
-o -name libgcc.a -o -name libgcc_eh.a -o -name libgcov.a \
|
|
|
999efc |
-o -name libquadmath.a -o -name libitm.a \
|
|
|
999efc |
-o -name libatomic.a -o -name libasan.a \
|
|
|
999efc |
-o -name libtsan.a -o -name libubsan.a \
|
|
|
999efc |
-o -name liblsan.a \
|
|
|
999efc |
-o -name libcc1.a \
|
|
|
999efc |
-o -name libstdc++_nonshared.a \
|
|
|
999efc |
-o -name libgomp_nonshared.a \
|
|
|
e9307e |
-o -name libgfortran_nonshared.a \
|
|
|
999efc |
-o -name libsupc++.a \
|
|
|
999efc |
-o -name libstdc++.a -o -name libcaf_single.a \
|
|
|
999efc |
-o -name libstdc++fs.a \) -a -type f`; do
|
|
|
999efc |
cp -a $f $RPM_BUILD_ROOT%{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/lib/debug%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/
|
|
|
999efc |
done
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
# Strip debug info from Fortran/ObjC/Java static libraries
|
|
|
999efc |
strip -g `find . \( -name libgfortran.a -o -name libgomp.a \
|
|
|
999efc |
-o -name libgcc.a -o -name libgcov.a \
|
|
|
999efc |
-o -name libquadmath.a -o -name libitm.a \
|
|
|
999efc |
-o -name libatomic.a -o -name libasan.a \
|
|
|
999efc |
-o -name libtsan.a -o -name libubsan.a \
|
|
|
999efc |
-o -name liblsan.a \
|
|
|
999efc |
-o -name libcc1.a \) -a -type f`
|
|
|
999efc |
popd
|
|
|
999efc |
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgfortran.so.5.*
|
|
|
999efc |
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgomp.so.1.*
|
|
|
999efc |
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libcc1.so.0.*
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
%if 0%{!?scl:1}
|
|
|
999efc |
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libquadmath.so.0.*
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libitm}
|
|
|
999efc |
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libitm.so.1.*
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
mkdir -p %{buildroot}%{_root_prefix}/%{_lib}/
|
|
|
999efc |
mv %{buildroot}%{_prefix}/%{_lib}/libitm.so.1* %{buildroot}%{_root_prefix}/%{_lib}/
|
|
|
999efc |
mkdir -p %{buildroot}%{_root_infodir}
|
|
|
999efc |
%if 0%{?rhel} <= 7
|
|
|
999efc |
mv %{buildroot}%{_infodir}/libitm.info* %{buildroot}%{_root_infodir}/
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libatomic}
|
|
|
999efc |
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libatomic.so.1.*
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
mkdir -p %{buildroot}%{_root_prefix}/%{_lib}/
|
|
|
999efc |
mv %{buildroot}%{_prefix}/%{_lib}/libatomic.so.1* %{buildroot}%{_root_prefix}/%{_lib}/
|
|
|
999efc |
mkdir -p %{buildroot}%{_root_infodir}
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libasan}
|
|
|
999efc |
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libasan.so.6.*
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
mkdir -p %{buildroot}%{_root_prefix}/%{_lib}/
|
|
|
999efc |
mv %{buildroot}%{_prefix}/%{_lib}/libasan.so.6* %{buildroot}%{_root_prefix}/%{_lib}/
|
|
|
999efc |
mkdir -p %{buildroot}%{_root_infodir}
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libtsan}
|
|
|
999efc |
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libtsan.so.0.*
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
mkdir -p %{buildroot}%{_root_prefix}/%{_lib}/
|
|
|
999efc |
mv %{buildroot}%{_prefix}/%{_lib}/libtsan.so.0* %{buildroot}%{_root_prefix}/%{_lib}/
|
|
|
999efc |
mkdir -p %{buildroot}%{_root_infodir}
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libubsan}
|
|
|
999efc |
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libubsan.so.1.*
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
mkdir -p %{buildroot}%{_root_prefix}/%{_lib}/
|
|
|
999efc |
mv %{buildroot}%{_prefix}/%{_lib}/libubsan.so.1* %{buildroot}%{_root_prefix}/%{_lib}/
|
|
|
999efc |
mkdir -p %{buildroot}%{_root_infodir}
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_liblsan}
|
|
|
999efc |
chmod 755 %{buildroot}%{_prefix}/%{_lib}/liblsan.so.0.*
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
mkdir -p %{buildroot}%{_root_prefix}/%{_lib}/
|
|
|
999efc |
mv %{buildroot}%{_prefix}/%{_lib}/liblsan.so.0* %{buildroot}%{_root_prefix}/%{_lib}/
|
|
|
999efc |
mkdir -p %{buildroot}%{_root_infodir}
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
mv $FULLPATH/include-fixed/syslimits.h $FULLPATH/include/syslimits.h
|
|
|
999efc |
mv $FULLPATH/include-fixed/limits.h $FULLPATH/include/limits.h
|
|
|
999efc |
for h in `find $FULLPATH/include -name \*.h`; do
|
|
|
999efc |
if grep -q 'It has been auto-edited by fixincludes from' $h; then
|
|
|
999efc |
rh=`grep -A2 'It has been auto-edited by fixincludes from' $h | tail -1 | sed 's|^.*"\(.*\)".*$|\1|'`
|
|
|
999efc |
diff -up $rh $h || :
|
|
|
999efc |
rm -f $h
|
|
|
999efc |
fi
|
|
|
999efc |
done
|
|
|
999efc |
|
|
|
999efc |
|
|
|
999efc |
cd ..
|
|
|
999efc |
|
|
|
999efc |
%if 0%{!?scl:1}
|
|
|
999efc |
for i in %{buildroot}%{_prefix}/bin/{*gcc,*++,gcov,gfortran,gcc-ar,gcc-nm,gcc-ranlib}; do
|
|
|
999efc |
mv -f $i ${i}5
|
|
|
999efc |
done
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
# Remove binaries we will not be including, so that they don't end up in
|
|
|
999efc |
# gcc-debuginfo
|
|
|
999efc |
rm -f %{buildroot}%{_prefix}/%{_lib}/{libffi*,libiberty.a,libmudflap*,libstdc++*,libgfortran*}
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
rm -f %{buildroot}%{_prefix}/%{_lib}/{libquadmath*,libitm*,libatomic*,libasan*,libtsan*,libubsan*,liblsan*}
|
|
|
999efc |
%else
|
|
|
999efc |
%if 0%{?rhel} >= 7
|
|
|
999efc |
rm -f %{buildroot}%{_prefix}/%{_lib}/{libitm*,libatomic*}
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
rm -f %{buildroot}%{_prefix}/%{_lib}/libgomp*
|
|
|
999efc |
rm -f %{buildroot}/%{_lib}/libgcc_s*
|
|
|
999efc |
rm -f $FULLEPATH/install-tools/{mkheaders,fixincl}
|
|
|
999efc |
rm -f %{buildroot}%{_prefix}/lib/{32,64}/libiberty.a
|
|
|
999efc |
rm -f %{buildroot}%{_prefix}/%{_lib}/libssp*
|
|
|
999efc |
rm -f %{buildroot}%{_prefix}/%{_lib}/libvtv* || :
|
|
|
999efc |
rm -f %{buildroot}/lib/cpp
|
|
|
999efc |
rm -f %{buildroot}/%{_lib}/libgcc_s*
|
|
|
999efc |
rm -f %{buildroot}%{_prefix}/bin/{f95,gccbug,gnatgcc*}
|
|
|
999efc |
rm -f %{buildroot}%{_prefix}/bin/%{gcc_target_platform}-gfortran
|
|
|
999efc |
%if 0%{!?scl:1}
|
|
|
999efc |
rm -f %{buildroot}%{_prefix}/bin/{*c++*,cc,cpp}
|
|
|
999efc |
%endif
|
|
|
999efc |
rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gfortran || :
|
|
|
999efc |
|
|
|
999efc |
%ifarch %{multilib_64_archs}
|
|
|
999efc |
# Remove libraries for the other arch on multilib arches
|
|
|
999efc |
rm -f %{buildroot}%{_prefix}/lib/lib*.so*
|
|
|
999efc |
rm -f %{buildroot}%{_prefix}/lib/lib*.a
|
|
|
999efc |
rm -f %{buildroot}/lib/libgcc_s*.so*
|
|
|
999efc |
%else
|
|
|
999efc |
%ifarch sparcv9 ppc
|
|
|
999efc |
rm -f %{buildroot}%{_prefix}/lib64/lib*.so*
|
|
|
999efc |
rm -f %{buildroot}%{_prefix}/lib64/lib*.a
|
|
|
999efc |
rm -f %{buildroot}/lib64/libgcc_s*.so*
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%ifnarch sparc64 ppc64
|
|
|
999efc |
%ifarch %{multilib_64_archs}
|
|
|
999efc |
cat <<\EOF > %{buildroot}%{_prefix}/bin/%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}-gcc-%{gcc_major}
|
|
|
999efc |
#!/bin/sh
|
|
|
999efc |
%ifarch s390x
|
|
|
999efc |
exec %{gcc_target_platform}-gcc-%{gcc_major} -m31 "$@"
|
|
|
999efc |
%else
|
|
|
999efc |
exec %{gcc_target_platform}-gcc-%{gcc_major} -m32 "$@"
|
|
|
999efc |
%endif
|
|
|
999efc |
EOF
|
|
|
999efc |
chmod 755 %{buildroot}%{_prefix}/bin/%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}-gcc-%{gcc_major}
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
# Help plugins find out nvra.
|
|
|
999efc |
echo gcc-%{version}-%{release}.%{arch} > $FULLPATH/rpmver
|
|
|
999efc |
|
|
|
999efc |
# Add symlink to lto plugin in the binutils plugin directory.
|
|
|
999efc |
%{__mkdir_p} %{buildroot}%{_libdir}/bfd-plugins/
|
|
|
999efc |
ln -s ../../libexec/gcc/%{gcc_target_platform}/%{gcc_major}/liblto_plugin.so \
|
|
|
999efc |
%{buildroot}%{_libdir}/bfd-plugins/
|
|
|
999efc |
|
|
|
999efc |
%check
|
|
|
999efc |
cd obj-%{gcc_target_platform}
|
|
|
999efc |
|
|
|
e9307e |
%ifarch ppc ppc64 ppc64le
|
|
|
e9307e |
while :; do sleep 15m; ps -ejHf; done &
|
|
|
e9307e |
%endif
|
|
|
e9307e |
|
|
|
999efc |
%{?scl:PATH=%{_bindir}${PATH:+:${PATH}}}
|
|
|
999efc |
%if 0%{?rhel} <= 8
|
|
|
999efc |
# Test against the system libstdc++.so.6 + libstdc++_nonshared.a combo
|
|
|
999efc |
mv %{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++.so.6{,.not_here}
|
|
|
999efc |
mv %{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++.so{,.not_here}
|
|
|
999efc |
ln -sf %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libstdc++.so.6 \
|
|
|
999efc |
%{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++.so.6
|
|
|
999efc |
echo '/* GNU ld script
|
|
|
999efc |
Use the shared library, but some functions are only in
|
|
|
999efc |
the static library, so try that secondarily. */
|
|
|
999efc |
%{oformat}
|
|
|
999efc |
INPUT ( %{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libstdc++.so.6 -lstdc++_nonshared )' \
|
|
|
999efc |
> %{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++.so
|
|
|
999efc |
cp -a %{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++_nonshared%{nonsharedver}.a \
|
|
|
999efc |
%{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++_nonshared.a
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
# run the tests.
|
|
|
999efc |
%ifnarch ppc ppc64 ppc64le
|
|
|
999efc |
make %{?_smp_mflags} -k check RUNTESTFLAGS="--target_board=unix/'{,-fstack-protector}'" || :
|
|
|
999efc |
%else
|
|
|
999efc |
make %{?_smp_mflags} -k check || :
|
|
|
999efc |
%endif
|
|
|
999efc |
( LC_ALL=C ../contrib/test_summary -t || : ) 2>&1 | sed -n '/^cat.*EOF/,/^EOF/{/^cat.*EOF/d;/^EOF/d;/^LAST_UPDATED:/d;p;}' > testresults
|
|
|
999efc |
rm -rf gcc/testsuite.prev
|
|
|
999efc |
mv gcc/testsuite{,.prev}
|
|
|
999efc |
rm -f gcc/site.exp
|
|
|
999efc |
make %{?_smp_mflags} -C gcc -k check-gcc check-g++ ALT_CC_UNDER_TEST=gcc ALT_CXX_UNDER_TEST=g++ RUNTESTFLAGS="--target_board=unix/'{,-fstack-protector}' compat.exp struct-layout-1.exp" || :
|
|
|
999efc |
mv gcc/testsuite/gcc/gcc.sum{,.sent}
|
|
|
999efc |
mv gcc/testsuite/g++/g++.sum{,.sent}
|
|
|
999efc |
( LC_ALL=C ../contrib/test_summary -o -t || : ) 2>&1 | sed -n '/^cat.*EOF/,/^EOF/{/^cat.*EOF/d;/^EOF/d;/^LAST_UPDATED:/d;p;}' > testresults2
|
|
|
999efc |
rm -rf gcc/testsuite.compat
|
|
|
999efc |
mv gcc/testsuite{,.compat}
|
|
|
999efc |
mv gcc/testsuite{.prev,}
|
|
|
999efc |
echo ====================TESTING=========================
|
|
|
999efc |
cat testresults
|
|
|
999efc |
echo ===`gcc --version | head -1` compatibility tests====
|
|
|
999efc |
cat testresults2
|
|
|
999efc |
echo ====================TESTING END=====================
|
|
|
999efc |
mkdir testlogs-%{_target_platform}-%{version}-%{release}
|
|
|
999efc |
for i in `find . -name \*.log | grep -F testsuite/ | grep -v 'config.log\|acats.*/tests/'`; do
|
|
|
999efc |
ln $i testlogs-%{_target_platform}-%{version}-%{release}/ || :
|
|
|
999efc |
done
|
|
|
999efc |
for i in `find gcc/testsuite.compat -name \*.log | grep -v 'config.log\|acats.*/tests/'`; do
|
|
|
999efc |
ln $i testlogs-%{_target_platform}-%{version}-%{release}/`basename $i`.compat || :
|
|
|
999efc |
done
|
|
|
999efc |
tar cf - testlogs-%{_target_platform}-%{version}-%{release} | bzip2 -9c \
|
|
|
999efc |
| uuencode testlogs-%{_target_platform}.tar.bz2 || :
|
|
|
999efc |
rm -rf testlogs-%{_target_platform}-%{version}-%{release}
|
|
|
999efc |
|
|
|
999efc |
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
%post gfortran
|
|
|
999efc |
if [ -f %{_infodir}/gfortran.info.gz ]; then
|
|
|
999efc |
/sbin/install-info \
|
|
|
999efc |
--info-dir=%{_infodir} %{_infodir}/gfortran.info.gz || :
|
|
|
999efc |
fi
|
|
|
999efc |
|
|
|
999efc |
%preun gfortran
|
|
|
999efc |
if [ $1 = 0 -a -f %{_infodir}/gfortran.info.gz ]; then
|
|
|
999efc |
/sbin/install-info --delete \
|
|
|
999efc |
--info-dir=%{_infodir} %{_infodir}/gfortran.info.gz || :
|
|
|
999efc |
fi
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%post gdb-plugin -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%postun gdb-plugin -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%post -n %{?scl_prefix}libgccjit -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%postun -n %{?scl_prefix}libgccjit -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%post -n %{?scl_prefix}libgccjit-docs
|
|
|
999efc |
if [ -f %{_infodir}/libgccjit.info.gz ]; then
|
|
|
999efc |
/sbin/install-info \
|
|
|
999efc |
--info-dir=%{_infodir} %{_infodir}/libgccjit.info.gz || :
|
|
|
999efc |
fi
|
|
|
999efc |
|
|
|
999efc |
%preun -n %{?scl_prefix}libgccjit-docs
|
|
|
999efc |
if [ $1 = 0 -a -f %{_infodir}/libgccjit.info.gz ]; then
|
|
|
999efc |
/sbin/install-info --delete \
|
|
|
999efc |
--info-dir=%{_infodir} %{_infodir}/libgccjit.info.gz || :
|
|
|
999efc |
fi
|
|
|
999efc |
|
|
|
999efc |
%post -n libquadmath
|
|
|
999efc |
/sbin/ldconfig
|
|
|
999efc |
if [ -f %{_infodir}/libquadmath.info.gz ]; then
|
|
|
999efc |
/sbin/install-info \
|
|
|
999efc |
--info-dir=%{_infodir} %{_infodir}/libquadmath.info.gz || :
|
|
|
999efc |
fi
|
|
|
999efc |
|
|
|
999efc |
%preun -n libquadmath
|
|
|
999efc |
if [ $1 = 0 -a -f %{_infodir}/libquadmath.info.gz ]; then
|
|
|
999efc |
/sbin/install-info --delete \
|
|
|
999efc |
--info-dir=%{_infodir} %{_infodir}/libquadmath.info.gz || :
|
|
|
999efc |
fi
|
|
|
999efc |
|
|
|
999efc |
%postun -n libquadmath -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%post -n libitm
|
|
|
999efc |
/sbin/ldconfig
|
|
|
999efc |
if [ -f %{_infodir}/libitm.info.gz ]; then
|
|
|
999efc |
/sbin/install-info \
|
|
|
999efc |
--info-dir=%{_infodir} %{_infodir}/libitm.info.gz || :
|
|
|
999efc |
fi
|
|
|
999efc |
|
|
|
999efc |
%preun -n libitm
|
|
|
999efc |
if [ $1 = 0 -a -f %{_infodir}/libitm.info.gz ]; then
|
|
|
999efc |
/sbin/install-info --delete \
|
|
|
999efc |
--info-dir=%{_infodir} %{_infodir}/libitm.info.gz || :
|
|
|
999efc |
fi
|
|
|
999efc |
|
|
|
999efc |
%postun -n libitm -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%post -n libatomic -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%postun -n libatomic -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%post -n libasan6 -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%postun -n libasan6 -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%post -n libtsan -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%postun -n libtsan -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%post -n libubsan1 -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%postun -n libubsan1 -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%post -n liblsan -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%postun -n liblsan -p /sbin/ldconfig
|
|
|
999efc |
|
|
|
999efc |
%files
|
|
|
999efc |
%{_prefix}/bin/gcc%{!?scl:10}
|
|
|
999efc |
%{_prefix}/bin/gcov%{!?scl:10}
|
|
|
999efc |
%{_prefix}/bin/gcov-tool%{!?scl:10}
|
|
|
999efc |
%{_prefix}/bin/gcov-dump%{!?scl:10}
|
|
|
999efc |
%{_prefix}/bin/gcc-ar%{!?scl:10}
|
|
|
999efc |
%{_prefix}/bin/gcc-nm%{!?scl:10}
|
|
|
999efc |
%{_prefix}/bin/gcc-ranlib%{!?scl:10}
|
|
|
999efc |
%ifarch ppc
|
|
|
999efc |
%{_prefix}/bin/%{_target_platform}-gcc%{!?scl:10}
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparc64 sparcv9
|
|
|
999efc |
%{_prefix}/bin/sparc-%{_vendor}-%{_target_os}%{?_gnu}-gcc%{!?scl:10}
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ppc64 ppc64p7
|
|
|
999efc |
%{_prefix}/bin/ppc-%{_vendor}-%{_target_os}%{?_gnu}-gcc%{!?scl:10}
|
|
|
999efc |
%endif
|
|
|
999efc |
%{_prefix}/bin/%{gcc_target_platform}-gcc%{!?scl:10}
|
|
|
999efc |
%{_prefix}/bin/%{gcc_target_platform}-gcc-%{gcc_major}
|
|
|
999efc |
%ifnarch sparc64 ppc64
|
|
|
999efc |
%ifarch %{multilib_64_archs}
|
|
|
999efc |
%{_prefix}/bin/%{multilib_32_arch}-%{_vendor}-%{_target_os}%{?_gnu}-gcc-%{gcc_major}
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
%{_prefix}/bin/cc
|
|
|
999efc |
%{_prefix}/bin/cpp
|
|
|
999efc |
%{_mandir}/man1/gcc.1*
|
|
|
999efc |
%{_mandir}/man1/cpp.1*
|
|
|
999efc |
%{_mandir}/man1/gcov.1*
|
|
|
999efc |
%{_mandir}/man1/gcov-tool.1*
|
|
|
999efc |
%{_mandir}/man1/gcov-dump.1*
|
|
|
999efc |
%{_infodir}/gcc*
|
|
|
999efc |
%{_infodir}/cpp*
|
|
|
999efc |
%endif
|
|
|
999efc |
%dir %{_prefix}/lib/gcc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%dir %{_prefix}/libexec/gcc
|
|
|
999efc |
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/lto1
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/lto-wrapper
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/liblto_plugin.so*
|
|
|
999efc |
%{_libdir}/bfd-plugins/liblto_plugin.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/rpmver
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stddef.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdarg.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdfix.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/varargs.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/float.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/limits.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdbool.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/iso646.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/syslimits.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/unwind.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/omp.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/openacc.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/acc_prof.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdint.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdint-gcc.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdalign.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdnoreturn.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdatomic.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/gcov.h
|
|
|
999efc |
%ifarch %{ix86} x86_64
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xmmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/emmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/pmmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/tmmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ammintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/smmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/nmmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/bmmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/wmmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/immintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avxintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/x86intrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/fma4intrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xopintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/lwpintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/popcntintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/bmiintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/tbmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ia32intrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx2intrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/bmi2intrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/f16cintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/fmaintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/lzcntintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/rtmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xtestintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/adxintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/prfchwintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/rdseedintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/fxsrintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xsaveintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xsaveoptintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512cdintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512erintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512fintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512pfintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/shaintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mm_malloc.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mm3dnow.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/cpuid.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/cross-stdarg.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512bwintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512dqintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512ifmaintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512ifmavlintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vbmiintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vbmivlintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vlbwintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vldqintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vlintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/clflushoptintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/clwbintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mwaitxintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xsavecintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xsavesintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/clzerointrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/pkuintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx5124fmapsintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx5124vnniwintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vpopcntdqintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sgxintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/gfniintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/cetintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/cet.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vbmi2intrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vbmi2vlintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vnniintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vnnivlintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/vaesintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/vpclmulqdqintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vpopcntdqvlintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512bitalgintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/pconfigintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/wbnoinvdintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/movdirintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/waitpkgintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/cldemoteintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512bf16vlintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512bf16intrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/enqcmdintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vp2intersectintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vp2intersectvlintrin.h
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ia64
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ia64intrin.h
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ppc ppc64 ppc64le ppc64p7
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ppc-asm.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/altivec.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ppu_intrinsics.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/si2vmx.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/spu2vmx.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/vec_types.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/htmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/htmxlintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/bmi2intrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/bmiintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xmmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mm_malloc.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/emmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/x86intrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/pmmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/tmmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/smmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amo.h
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{arm}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/unwind-arm-common.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_neon.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_acle.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_cmse.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_fp16.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_bf16.h
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch aarch64
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_neon.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_acle.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_fp16.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_bf16.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_sve.h
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparc sparcv9 sparc64
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/visintrin.h
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch s390 s390x
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/s390intrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/htmintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/htmxlintrin.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/vecintrin.h
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libasan}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sanitizer
|
|
|
999efc |
%endif
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cc1
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/collect2
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
%if 0%{?rhel} <= 7
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/ar
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/as
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/ld
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/ld.bfd
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/ld.gold
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/nm
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/objcopy
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/ranlib
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/strip
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/crt*.o
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcc.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcov.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcc_eh.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcc_s.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgomp.spec
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgomp.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgomp.so
|
|
|
999efc |
%if 0%{?rhel} <= 7
|
|
|
999efc |
%ifnarch ppc
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgomp_nonshared.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libitm}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libitm.spec
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libasan}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libsanitizer.spec
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparcv9 sparc64 ppc ppc64
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libquadmath.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libquadmath.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_isl}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libisl.so.*
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparcv9 ppc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/crt*.o
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcc.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcov.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcc_eh.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcc_s.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgomp.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgomp.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgccjit.so
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libquadmath.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libquadmath.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libitm}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libitm.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libitm.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libatomic}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libatomic.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libatomic.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libasan}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libasan.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libasan.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libasan_preinit.o
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libubsan}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libubsan.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libubsan.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{multilib_64_archs}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/crt*.o
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcc.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcov.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcc_eh.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcc_s.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgomp.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgomp.so
|
|
|
999efc |
|
|
|
999efc |
# Add libgomp_nonshared.a
|
|
|
999efc |
%if 0%{?rhel} <= 7
|
|
|
999efc |
%ifarch x86_64
|
|
|
999efc |
# Need it for -m32.
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgomp_nonshared.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch ppc64
|
|
|
999efc |
# We've created a symlink to lib64/libgomp_nonshared.a, so add it.
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libgomp_nonshared.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgccjit.so
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libquadmath.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libquadmath.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libitm}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libitm.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libitm.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libatomic}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libatomic.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libatomic.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libasan}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libasan.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libasan.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libasan_preinit.o
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libubsan}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libubsan.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libubsan.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparcv9 sparc64 ppc ppc64 ppc64p7
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libquadmath.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libquadmath.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libitm}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libitm.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libitm.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libatomic}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libasan}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan_preinit.o
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libubsan}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libubsan.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libubsan.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_libtsan}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libtsan.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libtsan.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%if %{build_liblsan}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/liblsan.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/liblsan.so
|
|
|
999efc |
%endif
|
|
|
999efc |
%endif
|
|
|
999efc |
%doc gcc/README* rpm.doc/changelogs/gcc/ChangeLog* gcc/COPYING* COPYING.RUNTIME
|
|
|
999efc |
|
|
|
999efc |
%files c++
|
|
|
999efc |
%{_prefix}/bin/%{gcc_target_platform}-g++%{!?scl:10}
|
|
|
999efc |
%{_prefix}/bin/g++%{!?scl:10}
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
%{_prefix}/bin/%{gcc_target_platform}-c++
|
|
|
999efc |
%{_prefix}/bin/c++
|
|
|
999efc |
%{_mandir}/man1/g++.1*
|
|
|
999efc |
%endif
|
|
|
999efc |
%dir %{_prefix}/lib/gcc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%dir %{_prefix}/libexec/gcc
|
|
|
999efc |
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cc1plus
|
|
|
999efc |
%ifarch sparcv9 ppc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++fs.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++_nonshared.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libsupc++.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{multilib_64_archs}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++fs.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++_nonshared.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libsupc++.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparcv9 ppc %{multilib_64_archs}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libsupc++.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparcv9 sparc64 ppc ppc64
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++fs.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++_nonshared.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%doc rpm.doc/changelogs/gcc/cp/ChangeLog*
|
|
|
999efc |
|
|
|
999efc |
%files -n %{?scl_prefix}libstdc++%{!?scl:10}-devel
|
|
|
999efc |
%defattr(-,root,root,-)
|
|
|
999efc |
%dir %{_prefix}/include/c++
|
|
|
999efc |
%{_prefix}/include/c++/%{gcc_major}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%ifarch sparcv9 ppc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libstdc++.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libstdc++fs.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libstdc++_nonshared.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparc64 ppc64
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libstdc++.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libstdc++fs.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libstdc++_nonshared.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifnarch sparcv9 sparc64 ppc ppc64
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++fs.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++_nonshared.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifnarch sparcv9 ppc %{multilib_64_archs}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libsupc++.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%doc rpm.doc/changelogs/libstdc++-v3/ChangeLog* libstdc++-v3/README*
|
|
|
999efc |
|
|
|
999efc |
|
|
|
999efc |
%if %{build_libstdcxx_docs}
|
|
|
999efc |
%files -n %{?scl_prefix}libstdc++%{!?scl:10}-docs
|
|
|
999efc |
%{_mandir}/man3/*
|
|
|
999efc |
%doc rpm.doc/libstdc++-v3/html
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%files gfortran
|
|
|
999efc |
%{_prefix}/bin/gfortran%{!?scl:10}
|
|
|
999efc |
%if 0%{?scl:1}
|
|
|
999efc |
%{_mandir}/man1/gfortran.1*
|
|
|
999efc |
%{_infodir}/gfortran*
|
|
|
999efc |
%endif
|
|
|
999efc |
%dir %{_prefix}/lib/gcc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%dir %{_prefix}/libexec/gcc
|
|
|
999efc |
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ISO_Fortran_binding.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/omp_lib.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/omp_lib.f90
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/omp_lib.mod
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/omp_lib_kinds.mod
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/openacc.f90
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/openacc.mod
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/openacc_kinds.mod
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/openacc_lib.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/ieee_arithmetic.mod
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/ieee_exceptions.mod
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/finclude/ieee_features.mod
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/f951
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgfortran.spec
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libcaf_single.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgfortran.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgfortran.so
|
|
|
e9307e |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgfortran_nonshared.a
|
|
|
999efc |
%ifarch sparcv9 ppc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libcaf_single.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgfortran.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgfortran.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/finclude
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch %{multilib_64_archs}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libcaf_single.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgfortran.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgfortran.so
|
|
|
e9307e |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgfortran_nonshared.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/finclude
|
|
|
999efc |
%endif
|
|
|
e9307e |
%ifarch ppc64
|
|
|
e9307e |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
|
|
|
e9307e |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libgfortran_nonshared.a
|
|
|
e9307e |
%endif
|
|
|
999efc |
%doc rpm.doc/gfortran/*
|
|
|
999efc |
|
|
|
999efc |
%if %{build_libquadmath}
|
|
|
999efc |
%files -n %{?scl_prefix}libquadmath-devel
|
|
|
999efc |
%dir %{_prefix}/lib/gcc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/quadmath.h
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/quadmath_weak.h
|
|
|
999efc |
%ifarch sparcv9 ppc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libquadmath.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparc64 ppc64 ppc64p7
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libquadmath.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libquadmath.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libquadmath.so
|
|
|
999efc |
%endif
|
|
|
e9307e |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
e9307e |
%ifarch %{ix86}
|
|
|
e9307e |
# Need it for -m32.
|
|
|
e9307e |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgfortran_nonshared.a
|
|
|
e9307e |
%endif
|
|
|
999efc |
%doc rpm.doc/libquadmath/ChangeLog*
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%if %{build_libitm}
|
|
|
999efc |
%files -n %{?scl_prefix}libitm-devel
|
|
|
999efc |
%dir %{_prefix}/lib/gcc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%ifarch sparcv9 ppc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libitm.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparc64 ppc64 ppc64p7
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libitm.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libitm.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libitm.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%doc rpm.doc/libitm/ChangeLog*
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%if %{build_libatomic}
|
|
|
999efc |
%files -n %{?scl_prefix}libatomic-devel
|
|
|
999efc |
%dir %{_prefix}/lib/gcc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%ifarch sparcv9 ppc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libatomic.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparc64 ppc64 ppc64p7
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libatomic.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.a
|
|
|
999efc |
%endif
|
|
|
999efc |
%doc rpm.doc/changelogs/libatomic/ChangeLog*
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%if %{build_libasan}
|
|
|
999efc |
%files -n libasan6
|
|
|
999efc |
%{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libasan.so.6*
|
|
|
999efc |
|
|
|
999efc |
%files -n %{?scl_prefix}libasan-devel
|
|
|
999efc |
%dir %{_prefix}/lib/gcc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%ifarch sparcv9 ppc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libasan.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libasan_preinit.o
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifarch sparc64 ppc64 ppc64p7
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libasan.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libasan_preinit.o
|
|
|
999efc |
%endif
|
|
|
999efc |
%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan.a
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan_preinit.o
|
|
|
999efc |
%endif
|
|
|
999efc |
%doc rpm.doc/changelogs/libsanitizer/ChangeLog* libsanitizer/LICENSE.TXT
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%if %{build_libtsan}
|
|
|
999efc |
# Use the system libtsan.
|
|
|
999efc |
%if 0%{?rhel} < 8
|
|
|
999efc |
%files -n libtsan
|
|
|
999efc |
%{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libtsan.so.0*
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%files -n %{?scl_prefix}libtsan-devel
|
|
|
999efc |
%dir %{_prefix}/lib/gcc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libtsan.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libtsan_preinit.o
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libtsan.a
|
|
|
999efc |
%doc rpm.doc/changelogs/libsanitizer/ChangeLog* libsanitizer/LICENSE.TXT
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%if %{build_libubsan}
|
|
|
999efc |
# GTS 10 libubsan1 would clash with the system RHEL 8 libubsan.
|
|
|
999efc |
%if 0%{?rhel} < 8
|
|
|
999efc |
%files -n libubsan1
|
|
|
999efc |
%{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/libubsan.so.1*
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%files -n %{?scl_prefix}libubsan-devel
|
|
|
999efc |
%dir %{_prefix}/lib/gcc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libubsan.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libubsan.a
|
|
|
999efc |
%doc rpm.doc/changelogs/libsanitizer/ChangeLog* libsanitizer/LICENSE.TXT
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%if %{build_liblsan}
|
|
|
999efc |
# Use the system liblsan.
|
|
|
999efc |
%if 0%{?rhel} < 8
|
|
|
999efc |
%files -n liblsan
|
|
|
999efc |
%{?scl:%{_root_prefix}}%{!?scl:%{_prefix}}/%{_lib}/liblsan.so.0*
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%files -n %{?scl_prefix}liblsan-devel
|
|
|
999efc |
%dir %{_prefix}/lib/gcc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/liblsan.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/liblsan_preinit.o
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/liblsan.a
|
|
|
999efc |
%doc rpm.doc/changelogs/libsanitizer/ChangeLog* libsanitizer/LICENSE.TXT
|
|
|
999efc |
%endif
|
|
|
999efc |
|
|
|
999efc |
%files -n %{?scl_prefix}libgccjit
|
|
|
999efc |
%{_prefix}/%{_lib}/libgccjit.so*
|
|
|
999efc |
%doc rpm.doc/changelogs/gcc/jit/ChangeLog*
|
|
|
999efc |
|
|
|
999efc |
%files -n %{?scl_prefix}libgccjit-devel
|
|
|
999efc |
%dir %{_prefix}/lib/gcc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgccjit.so
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/libgccjit*.h
|
|
|
999efc |
|
|
|
999efc |
%files -n %{?scl_prefix}libgccjit-docs
|
|
|
999efc |
%{_infodir}/libgccjit.info*
|
|
|
999efc |
%doc rpm.doc/libgccjit-devel/*
|
|
|
999efc |
%doc gcc/jit/docs/examples
|
|
|
999efc |
|
|
|
999efc |
%files plugin-devel
|
|
|
999efc |
%dir %{_prefix}/lib/gcc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/gtype.state
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/include
|
|
|
999efc |
%dir %{_prefix}/libexec/gcc
|
|
|
999efc |
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/plugin
|
|
|
999efc |
|
|
|
999efc |
%files gdb-plugin
|
|
|
999efc |
%{_prefix}/%{_lib}/libcc1.so*
|
|
|
999efc |
%dir %{_prefix}/lib/gcc
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
|
|
999efc |
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/libcc1plugin.so*
|
|
|
999efc |
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/libcp1plugin.so*
|
|
|
999efc |
%doc rpm.doc/changelogs/libcc1/ChangeLog*
|
|
|
999efc |
|
|
|
999efc |
%changelog
|
|
|
e9307e |
* Thu Mar 18 2021 Marek Polacek <polacek@redhat.com> 10.2.1-11.1
|
|
|
e9307e |
- update libgomp_nonshared.c with new symbols
|
|
|
e9307e |
|
|
|
e9307e |
* Tue Feb 16 2021 Marek Polacek <polacek@redhat.com> 10.2.1-11
|
|
|
e9307e |
- update from Fedora gcc 10.2.1-11
|
|
|
e9307e |
- apply gcc10-SIZE_MAX.patch
|
|
|
e9307e |
|
|
|
e9307e |
* Tue Feb 16 2021 Marek Polacek <polacek@redhat.com> 10.2.1-10.4
|
|
|
e9307e |
- package 32/libgfortran_nonshared.a (#1927579)
|
|
|
e9307e |
|
|
|
e9307e |
* Mon Feb 15 2021 Marek Polacek <polacek@redhat.com> 10.2.1-10.3
|
|
|
e9307e |
- actually use libgfortran_nonshared.a (#1927579)
|
|
|
e9307e |
|
|
|
e9307e |
* Mon Jan 25 2021 Marek Polacek <polacek@redhat.com> 10.2.1-10.2
|
|
|
e9307e |
- require make
|
|
|
e9307e |
- apply PR97524 fix (#1896092)
|
|
|
e9307e |
|
|
|
e9307e |
* Tue Jan 19 2021 Marek Polacek <polacek@redhat.com> 10.2.1-10.1
|
|
|
e9307e |
- update from Fedora gcc 10.2.1-10 (#1872051)
|
|
|
e9307e |
- drop gcc10-pr96385.patch
|
|
|
e9307e |
|
|
|
999efc |
* Mon Aug 17 2020 Marek Polacek <polacek@redhat.com> 10.2.1-2.1
|
|
|
999efc |
- re-enable Fortran patches (#1860413)
|
|
|
999efc |
|
|
|
999efc |
* Tue Aug 4 2020 Marek Polacek <polacek@redhat.com> 10.2.1-2
|
|
|
999efc |
- update from Fedora gcc 10.2.1-2
|
|
|
999efc |
- emit debug info for C/C++ external function declarations used in the TU
|
|
|
999efc |
(PR debug/96383)
|
|
|
999efc |
- discard SHN_UNDEF global symbols from LTO debuginfo (PR lto/96385)
|
|
|
999efc |
- strip also -flto=auto from optflags
|
|
|
999efc |
|
|
|
999efc |
* Sun Aug 2 2020 Marek Polacek <polacek@redhat.com> 10.2.1-1.2
|
|
|
999efc |
- avoid stack overflow in std::vector (PR libstdc++/94540, #1859670)
|
|
|
999efc |
- apply gcc10-libgfortran-compat-2.patch
|
|
|
999efc |
|
|
|
999efc |
* Sat Aug 1 2020 Marek Polacek <polacek@redhat.com> 10.2.1-1.1
|
|
|
999efc |
- add various .hidden symbols to gcc10-libstdc++-compat.patch
|
|
|
999efc |
|
|
|
999efc |
* Mon Jul 27 2020 Marek Polacek <polacek@redhat.com> 10.2.1-1
|
|
|
999efc |
- GCC 10.2 release
|
|
|
999efc |
- add symlink to liblto_plugin.so in /usr/lib/bfd-plugins
|
|
|
999efc |
- disable -flto in %%{optflags}, lto bootstrap will be enabled the GCC way
|
|
|
999efc |
later
|
|
|
999efc |
- require MPFR Library version 3.1.0 (or later)
|
|
|
999efc |
|
|
|
999efc |
* Wed Jul 22 2020 Marek Polacek <polacek@redhat.com> 10.1.1-1.1
|
|
|
999efc |
- require libasan6
|
|
|
999efc |
|
|
|
999efc |
* Mon Jul 13 2020 Marek Polacek <polacek@redhat.com> 10.1.1-1
|
|
|
999efc |
- update to GCC 10.1.0 release (#1851053)
|
|
|
999efc |
|
|
|
999efc |
* Thu Jun 4 2020 Marek Polacek <polacek@redhat.com> 9.3.1-2.1
|
|
|
999efc |
- bump for rebuild on ppc/s390
|
|
|
999efc |
|
|
|
999efc |
* Wed Apr 8 2020 Marek Polacek <polacek@redhat.com> 9.3.1-2
|
|
|
999efc |
- update from Fedora gcc-9.3.1-2
|
|
|
999efc |
|
|
|
999efc |
* Tue Apr 7 2020 Marek Polacek <polacek@redhat.com> 9.3.1-1.1
|
|
|
999efc |
- include the c++/93597 fix
|
|
|
999efc |
- remove several .hidden symbols from gcc9-libstdc++-compat
|
|
|
999efc |
|
|
|
999efc |
* Wed Mar 18 2020 Marek Polacek <polacek@redhat.com> 9.3.1-1
|
|
|
999efc |
- update from Fedora gcc-9.3.1-1 (#1812147)
|
|
|
999efc |
|
|
|
999efc |
* Thu Feb 6 2020 Marek Polacek <polacek@redhat.com> 9.2.1-3.8
|
|
|
999efc |
- remove a few *codecvt_utf8* symbols from gcc9-libstdc++-compat
|
|
|
999efc |
|
|
|
999efc |
* Wed Jan 29 2020 Marek Polacek <polacek@redhat.com> 9.2.1-3.7
|
|
|
999efc |
- gcc9-libstdc++-compat fix: move _ZSt19__throw_ios_failurePKc
|
|
|
999efc |
|
|
|
999efc |
* Wed Jan 29 2020 Marek Polacek <polacek@redhat.com> 9.2.1-3.6
|
|
|
999efc |
- update from Fedora gcc-9.2.1-3 (#1783475)
|
|
|
999efc |
|
|
|
999efc |
* Thu Nov 21 2019 Marek Polacek <polacek@redhat.com> 9.1.1-2.6
|
|
|
999efc |
- fix libgomp_nonshared.a symlink on ppc64
|
|
|
999efc |
|
|
|
999efc |
* Tue Nov 19 2019 Marek Polacek <polacek@redhat.com> 9.1.1-2.5
|
|
|
999efc |
- add libgomp_nonshared.a (#1769957)
|
|
|
999efc |
|
|
|
999efc |
* Thu Aug 15 2019 Marek Polacek <polacek@redhat.com> 9.1.1-2.4
|
|
|
999efc |
- require binutils >= 2.31 so that gcc supports -mpltseq
|
|
|
999efc |
|
|
|
999efc |
* Fri Aug 9 2019 Marek Polacek <polacek@redhat.com> 9.1.1-2.3
|
|
|
999efc |
- fix visibility of symbols in gcc9-libstdc++-compat.patch (#1738677)
|
|
|
999efc |
|
|
|
999efc |
* Mon Jul 22 2019 Marek Polacek <polacek@redhat.com> 9.1.1-2.2
|
|
|
999efc |
- small fixes for the Fortran patches (#1728355)
|
|
|
999efc |
|
|
|
999efc |
* Mon Jul 22 2019 Marek Polacek <polacek@redhat.com> 9.1.1-2.1
|
|
|
999efc |
- updates from GTS 9 gcc
|
|
|
999efc |
|
|
|
999efc |
* Fri Jul 19 2019 Marek Polacek <polacek@redhat.com> 9.1.1-2
|
|
|
999efc |
- fix Release
|
|
|
999efc |
|
|
|
999efc |
* Thu Jul 18 2019 Marek Polacek <polacek@redhat.com> 9.1.1-1.1
|
|
|
999efc |
- fix out-of-ssa with unsupported vector types (PR rtl-optimization/90756,
|
|
|
999efc |
#1727979)
|
|
|
999efc |
- apply Fortran patches (#1728355)
|
|
|
999efc |
|
|
|
999efc |
* Tue Jul 9 2019 Marek Polacek <polacek@redhat.com> 9.1.1-1
|
|
|
999efc |
- new package
|
|
|
999efc |
- fix library requires: use %{_isa} (#1697655)
|