disable _lto_cflags in Fedora 36

This commit is contained in:
Tom spot Callaway 2021-11-11 11:43:50 -05:00
parent a15e05c5b4
commit c236b87ba9
1 changed files with 10 additions and 0 deletions

10
R.spec
View File

@ -1,6 +1,16 @@
# We do not want this.
%define __brp_mangle_shebangs /usr/bin/true
# enabling LTO in Fedora 36 results in:
# checking whether gfortran -m64 and gcc -m64 agree on double complex...
# configure: WARNING: gfortran -m64 and gcc -m64 disagree on double
# complex
# AND that leads to
# Fortran complex functions are not available on this platform
%if 0%{?fedora} >= 36
%global _lto_cflags %nil
%endif
%global runjavareconf 1
%define javareconf() %{expand: