- Rework shared spec file parts to allow custom Summary and
Description for cross compilers. Clarify their Summary and Description. [bsc#1148517] - Reorder things in cross.spec.in so the Version define comes before the first use of %version. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc7?expand=0&rev=170
This commit is contained in:
parent
ac16d97463
commit
4d5fd7d4e0
@ -69,9 +69,11 @@ add_cross() {
|
||||
echo "%define cross_arch $rpmtarget" >> $pkgname.spec
|
||||
echo "%define gcc_target_arch $triplet" >> $pkgname.spec
|
||||
echo "$@" >> $pkgname.spec
|
||||
{ sed -n -e '1,/COMMON-BEGIN/p' cross.spec.in
|
||||
sed -n -e '/COMMON-BEGIN/,/COMMON-END/p' $outfile
|
||||
sed -n -e '/COMMON-END/,$p' cross.spec.in; } |
|
||||
{ sed -n -e '1,/SRC-COMMON-BEGIN/p' cross.spec.in
|
||||
sed -n -e '/SRC-COMMON-BEGIN/,/SRC-COMMON-END/p' $outfile
|
||||
sed -n -e '/SRC-COMMON-END/,/BUILD-COMMON-BEGIN/p' cross.spec.in
|
||||
sed -n -e '/BUILD-COMMON-BEGIN/,/BUILD-COMMON-END/p' $outfile
|
||||
sed -n -e '/BUILD-COMMON-END/,$p' cross.spec.in; } |
|
||||
sed -e "s#@base_ver@#$base_ver#" \
|
||||
-e "s/^\(ExclusiveArch.*\) $rpmtarget[^ \r]*/\1 /" \
|
||||
>> $pkgname.spec
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -100,6 +100,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -167,86 +232,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -100,6 +100,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -167,86 +232,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -100,6 +100,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -167,86 +232,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -99,6 +99,71 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -166,86 +231,21 @@ Conflicts: cross-%{cross_arch}-gcc7
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 7.4.1+r275405
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
Source3: gcc7-rpmlintrc
|
||||
Source4: README.First-for.SuSE.packagers
|
||||
Source5: nvptx-newlib.tar.xz
|
||||
Patch2: gcc-add-defaultsspec.diff
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
Patch7: gcc48-libstdc++-api-reference.patch
|
||||
Patch9: gcc48-remove-mpfr-2.4.0-requirement.patch
|
||||
Patch10: gcc5-no-return-gcc43-workaround.patch
|
||||
Patch11: gcc7-remove-Wexpansion-to-defined-from-Wextra.patch
|
||||
Patch12: gcc7-stack-probe.diff
|
||||
Patch14: gcc7-pr82248.diff
|
||||
Patch15: gcc7-avoid-fixinc-error.diff
|
||||
Patch17: gcc7-flive-patching.patch
|
||||
# A set of patches from the RH srpm
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
frontend.
|
||||
|
||||
Language frontends other than C are split to different sub-packages,
|
||||
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
# %%cross_arch is supposed to be the rpm target variant arch
|
||||
# %%TARGET_ARCH will be the canonicalized target CPU part
|
||||
# %%HOST_ARCH will be the canonicalized host CPU part
|
||||
%if 0%{?gcc_target_arch:1}
|
||||
%define TARGET_ARCH %(echo %{cross_arch} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%else
|
||||
%define TARGET_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?disable_32bit:1}
|
||||
%define biarch 0
|
||||
%else
|
||||
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
|
||||
%ifarch ppc
|
||||
%define GCCDIST powerpc64-suse-linux
|
||||
%else
|
||||
%ifarch %sparc
|
||||
%define GCCDIST sparc64-suse-linux
|
||||
%else
|
||||
%ifarch %arm
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux-gnueabi
|
||||
%else
|
||||
%define GCCDIST %{HOST_ARCH}-suse-linux
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
%setup -q -n gcc-%{version} -a 5
|
||||
|
@ -78,6 +78,8 @@
|
||||
%endif
|
||||
|
||||
Name: %{pkgname}
|
||||
# SRC-COMMON-BEGIN
|
||||
# SRC-COMMON-END
|
||||
%if "%{cross_arch}" != "nvptx"
|
||||
BuildRequires: cross-%{binutils_target}-binutils
|
||||
Requires: cross-%{binutils_target}-binutils
|
||||
@ -145,10 +147,22 @@ Conflicts: cross-%{cross_arch}-gcc@base_ver@
|
||||
BuildRequires: update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
Summary: The GNU Compiler Collection targeting %{cross_arch}
|
||||
License: GPL-3.0-or-later
|
||||
|
||||
# COMMON-BEGIN
|
||||
# COMMON-END
|
||||
%description
|
||||
The GNU Compiler Collection as a cross-compiler targeting %{cross_arch}.
|
||||
%if 0%{?gcc_icecream:1}
|
||||
Note this is only useful for building freestanding things like the
|
||||
kernel since it fails to include target libraries and headers.
|
||||
%endif
|
||||
%if 0%{?gcc_libc_bootstrap:1}
|
||||
This is a package that is necessary for bootstrapping another package
|
||||
only, it is not intended for any other use.
|
||||
%endif
|
||||
|
||||
# BUILD-COMMON-BEGIN
|
||||
# BUILD-COMMON-END
|
||||
%if 0%{!?gcc_icecream:1} && 0%{!?gcc_libc_bootstrap:1}
|
||||
make %{?_smp_mflags}
|
||||
%else
|
||||
|
20
gcc.spec.in
20
gcc.spec.in
@ -235,7 +235,7 @@ BuildRequires: gdb
|
||||
%define build_primary_64bit 0
|
||||
%endif
|
||||
|
||||
# COMMON-BEGIN
|
||||
# SRC-COMMON-BEGIN
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
@ -244,7 +244,7 @@ Release: 1
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
%define binsuffix -@base_ver@
|
||||
# COMMON-END
|
||||
# SRC-COMMON-END
|
||||
|
||||
%if !0%{?building_testsuite:1}
|
||||
Requires: binutils glibc-devel
|
||||
@ -286,7 +286,8 @@ Requires: libmpxwrappers%{libmpxwrappers_sover} >= %{version}-%{release}
|
||||
Suggests: gcc@base_ver@-info gcc@base_ver@-locale
|
||||
%endif
|
||||
|
||||
# COMMON-BEGIN
|
||||
# SRC-COMMON-BEGIN
|
||||
Group: Development/Languages/C and C++
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: gcc-%{version}.tar.xz
|
||||
Source1: change_spec
|
||||
@ -312,9 +313,9 @@ Patch61: gcc44-rename-info-files.patch
|
||||
|
||||
|
||||
# GCC-TESTSUITE-DELETE-BEGIN
|
||||
Group: Development/Languages/C and C++
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
License: GPL-3.0+
|
||||
# SRC-COMMON-END
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
|
||||
%description
|
||||
Core package for the GNU Compiler Collection, including the C language
|
||||
@ -325,7 +326,6 @@ namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
|
||||
|
||||
|
||||
|
||||
# COMMON-END
|
||||
%package -n gcc@base_ver@-32bit
|
||||
Summary: The GNU C Compiler 32bit support
|
||||
Group: Development/Languages/C and C++
|
||||
@ -939,7 +939,7 @@ Results from running the gcc and target library testsuites.
|
||||
|
||||
|
||||
|
||||
# COMMON-BEGIN
|
||||
# SRC-COMMON-BEGIN
|
||||
|
||||
# Define the canonical target and host architecture
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -975,7 +975,7 @@ Results from running the gcc and target library testsuites.
|
||||
%define libsubdir %{_libdir}/gcc/%{GCCDIST}/%{gcc_dir_version}
|
||||
%define gxxinclude %{_prefix}/include/c++/%{gcc_dir_version}
|
||||
|
||||
# COMMON-END
|
||||
# SRC-COMMON-END
|
||||
|
||||
# Versionspecific directories
|
||||
%define versmainlibdir %{libsubdir}
|
||||
@ -1035,7 +1035,7 @@ Results from running the gcc and target library testsuites.
|
||||
%endif
|
||||
|
||||
|
||||
# COMMON-BEGIN
|
||||
# BUILD-COMMON-BEGIN
|
||||
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}
|
||||
@ -1356,7 +1356,7 @@ nvptx-none=%{_prefix}/nvptx-none, \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST}
|
||||
|
||||
# COMMON-END
|
||||
# BUILD-COMMON-END
|
||||
|
||||
STAGE1_FLAGS="-g -O2"
|
||||
%if 0%{?do_profiling}
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 07:33:54 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Rework shared spec file parts to allow custom Summary and
|
||||
Description for cross compilers. Clarify their Summary
|
||||
and Description. [bsc#1148517]
|
||||
- Reorder things in cross.spec.in so the Version define comes before
|
||||
the first use of %version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 5 13:29:56 UTC 2019 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user