forked from pool/gcc13
Accepting request 1074875 from home:Guillaume_G:branches:devel:gcc
Add %limit_build for gcc13 to avoid OOM. We cannot use memoryperjob in _constraints file because it would reduce the number of worker to 13 on aarch64, which are all known to be slow. OBS-URL: https://build.opensuse.org/request/show/1074875 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc13?expand=0&rev=32
This commit is contained in:
parent
26b3f96cdc
commit
a2657d9149
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -342,6 +342,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -342,6 +342,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -342,6 +342,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -342,6 +342,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -342,6 +342,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -341,6 +341,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
15
gcc.spec.in
15
gcc.spec.in
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
# nospeccleaner
|
# nospeccleaner
|
||||||
|
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
|
||||||
%if 0%{?suse_version} < 1550
|
%if 0%{?suse_version} < 1550
|
||||||
%define _slibdir /%{_lib}
|
%define _slibdir /%{_lib}
|
||||||
%define slibdir /lib
|
%define slibdir /lib
|
||||||
@ -127,6 +129,13 @@
|
|||||||
%define build_jit 0
|
%define build_jit 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Limit the number of parallel jobs to avoid OOM for gcc13
|
||||||
|
%if "%{flavor}" == ""
|
||||||
|
%bcond_without limitbuild
|
||||||
|
%else
|
||||||
|
%bcond_with limitbuild
|
||||||
|
%endif
|
||||||
|
|
||||||
# Shared library SONAME versions
|
# Shared library SONAME versions
|
||||||
%ifarch hppa
|
%ifarch hppa
|
||||||
%define libgcc_s 4
|
%define libgcc_s 4
|
||||||
@ -229,6 +238,9 @@ BuildRequires: texinfo
|
|||||||
# until here, but at least renaming and patching info files breaks this
|
# until here, but at least renaming and patching info files breaks this
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: glibc-devel-32bit
|
BuildRequires: glibc-devel-32bit
|
||||||
|
%if %{with limitbuild}
|
||||||
|
BuildRequires: memory-constraints
|
||||||
|
%endif
|
||||||
BuildRequires: mpc-devel
|
BuildRequires: mpc-devel
|
||||||
BuildRequires: mpfr-devel
|
BuildRequires: mpfr-devel
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
@ -1353,6 +1365,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
|
|
||||||
# nospeccleaner
|
# nospeccleaner
|
||||||
|
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
|
||||||
%if 0%{?suse_version} < 1550
|
%if 0%{?suse_version} < 1550
|
||||||
%define _slibdir /%{_lib}
|
%define _slibdir /%{_lib}
|
||||||
%define slibdir /lib
|
%define slibdir /lib
|
||||||
@ -147,6 +149,13 @@
|
|||||||
%define build_jit 0
|
%define build_jit 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Limit the number of parallel jobs to avoid OOM for gcc13
|
||||||
|
%if "%{flavor}" == ""
|
||||||
|
%bcond_without limitbuild
|
||||||
|
%else
|
||||||
|
%bcond_with limitbuild
|
||||||
|
%endif
|
||||||
|
|
||||||
# Shared library SONAME versions
|
# Shared library SONAME versions
|
||||||
%ifarch hppa
|
%ifarch hppa
|
||||||
%define libgcc_s 4
|
%define libgcc_s 4
|
||||||
@ -245,6 +254,9 @@ BuildRequires: texinfo
|
|||||||
# until here, but at least renaming and patching info files breaks this
|
# until here, but at least renaming and patching info files breaks this
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: glibc-devel-32bit
|
BuildRequires: glibc-devel-32bit
|
||||||
|
%if %{with limitbuild}
|
||||||
|
BuildRequires: memory-constraints
|
||||||
|
%endif
|
||||||
BuildRequires: mpc-devel
|
BuildRequires: mpc-devel
|
||||||
BuildRequires: mpfr-devel
|
BuildRequires: mpfr-devel
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
@ -544,6 +556,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 24 14:44:48 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
- Add %limit_build for gcc13 to avoid OOM
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 24 13:37:38 UTC 2023 - Martin Liška <mliska@suse.cz>
|
Fri Mar 24 13:37:38 UTC 2023 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
15
gcc13.spec
15
gcc13.spec
@ -16,6 +16,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
|
||||||
%if 0%{?suse_version} < 1550
|
%if 0%{?suse_version} < 1550
|
||||||
%define _slibdir /%{_lib}
|
%define _slibdir /%{_lib}
|
||||||
%define slibdir /lib
|
%define slibdir /lib
|
||||||
@ -126,6 +128,13 @@
|
|||||||
%define build_jit 0
|
%define build_jit 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Limit the number of parallel jobs to avoid OOM for gcc13
|
||||||
|
%if "%{flavor}" == ""
|
||||||
|
%bcond_without limitbuild
|
||||||
|
%else
|
||||||
|
%bcond_with limitbuild
|
||||||
|
%endif
|
||||||
|
|
||||||
# Shared library SONAME versions
|
# Shared library SONAME versions
|
||||||
%ifarch hppa
|
%ifarch hppa
|
||||||
%define libgcc_s 4
|
%define libgcc_s 4
|
||||||
@ -224,6 +233,9 @@ BuildRequires: texinfo
|
|||||||
# until here, but at least renaming and patching info files breaks this
|
# until here, but at least renaming and patching info files breaks this
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: glibc-devel-32bit
|
BuildRequires: glibc-devel-32bit
|
||||||
|
%if %{with limitbuild}
|
||||||
|
BuildRequires: memory-constraints
|
||||||
|
%endif
|
||||||
BuildRequires: mpc-devel
|
BuildRequires: mpc-devel
|
||||||
BuildRequires: mpfr-devel
|
BuildRequires: mpfr-devel
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
@ -2361,6 +2373,9 @@ ln -s newlib-4.3.0.20230120/newlib .
|
|||||||
#test patching end
|
#test patching end
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with limitbuild}
|
||||||
|
%limit_build -m 900
|
||||||
|
%endif
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
# Avoid rebuilding of generated files
|
# Avoid rebuilding of generated files
|
||||||
contrib/gcc_update --touch
|
contrib/gcc_update --touch
|
||||||
|
Loading…
Reference in New Issue
Block a user