From 93af49f852b559fc486462b10fec4ec6ab4fbe0c Mon Sep 17 00:00:00 2001 From: Antonio Trande Date: Thu, 23 Feb 2023 19:47:21 +0100 Subject: [PATCH] Disable LTO flags --- petsc.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/petsc.spec b/petsc.spec index 2b89f55..9ebe30a 100644 --- a/petsc.spec +++ b/petsc.spec @@ -6,6 +6,8 @@ # undefined-non-weak-symbol libpetsc.so.3.17.4_glibcxx_assert_fail %undefine _ld_as_needed +%global _lto_cflags %{nil} + # Testing libpetsc ? %bcond_with check # @@ -289,7 +291,7 @@ Name: petsc Summary: Portable Extensible Toolkit for Scientific Computation Version: %{releasever}.4 -Release: 10%{?dist} +Release: 11%{?dist} License: BSD URL: https://petsc.org/ Source0: https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-with-docs-%{version}.tar.gz @@ -617,10 +619,6 @@ pushd %{name}-%{version} popd %build -%ifarch %{arm} -# Likely running out of memory during build -%global _lto_cflags %{nil} -%endif pushd %{name}-%{version} %configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran \ %{petsc_build_options} \ @@ -1171,6 +1169,9 @@ xvfb-run -a make MAKE_NP=$RPM_BUILD_NCPUS all test -C build64 V=1 MPIEXEC='%{_bu %endif %changelog +* Thu Feb 23 2023 Antonio Trande - 3.17.4-11 +- Disable LTO flags + * Wed Feb 22 2023 Antonio Trande - 3.17.4-10 - Undefine _ld_as_needed