From 1f557c1cb00353d12fe8cee8a25cdc4ef4bd2a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20=C3=9Acar?= Date: Thu, 3 Nov 2022 12:50:43 +0100 Subject: [PATCH] Fix condition; lto doesn't work for some reason --- R.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R.spec b/R.spec index d0bec1f..083077e 100644 --- a/R.spec +++ b/R.spec @@ -13,11 +13,11 @@ # checking whether gfortran and gcc agree on double complex... # configure: WARNING: gfortran and gcc disagree on double complex # AND that leads to Fortran complex functions are not available on this platform -%bcond_with lto +%bcond_with LTO # We need at least gcc 10 anyway %global with_lto 1 -%if %{without lto} || 0%{?rhel} < 9 +%if %{without LTO} || 0%{?rhel} < 9 %global with_lto 0 %global _lto_cflags %nil %endif