Disable LTO flags

This commit is contained in:
Antonio Trande 2023-02-23 19:47:21 +01:00
parent a5dd511024
commit 93af49f852

View File

@ -6,6 +6,8 @@
# undefined-non-weak-symbol libpetsc.so.3.17.4_glibcxx_assert_fail # undefined-non-weak-symbol libpetsc.so.3.17.4_glibcxx_assert_fail
%undefine _ld_as_needed %undefine _ld_as_needed
%global _lto_cflags %{nil}
# Testing libpetsc ? # Testing libpetsc ?
%bcond_with check %bcond_with check
# #
@ -289,7 +291,7 @@
Name: petsc Name: petsc
Summary: Portable Extensible Toolkit for Scientific Computation Summary: Portable Extensible Toolkit for Scientific Computation
Version: %{releasever}.4 Version: %{releasever}.4
Release: 10%{?dist} Release: 11%{?dist}
License: BSD License: BSD
URL: https://petsc.org/ URL: https://petsc.org/
Source0: https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-with-docs-%{version}.tar.gz Source0: https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-with-docs-%{version}.tar.gz
@ -617,10 +619,6 @@ pushd %{name}-%{version}
popd popd
%build %build
%ifarch %{arm}
# Likely running out of memory during build
%global _lto_cflags %{nil}
%endif
pushd %{name}-%{version} pushd %{name}-%{version}
%configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran \ %configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran \
%{petsc_build_options} \ %{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 %endif
%changelog %changelog
* Thu Feb 23 2023 Antonio Trande <sagitter@fedoraproject.org> - 3.17.4-11
- Disable LTO flags
* Wed Feb 22 2023 Antonio Trande <sagitter@fedoraproject.org> - 3.17.4-10 * Wed Feb 22 2023 Antonio Trande <sagitter@fedoraproject.org> - 3.17.4-10
- Undefine _ld_as_needed - Undefine _ld_as_needed