From 95908ef6d5f61aba3e8231a9fc6591af47aa3625 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 21 Aug 2020 11:55:38 -0600 Subject: [PATCH] Re-enable LTO on all but armv7hl --- postgresql.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/postgresql.spec b/postgresql.spec index 6142f4e..78faecb 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -61,7 +61,7 @@ Summary: PostgreSQL client programs Name: postgresql %global majorversion 12 Version: %{majorversion}.3 -Release: 6%{?dist} +Release: 7%{?dist} # The PostgreSQL license is very similar to other MIT licenses, but the OSI # recognizes it as an independent license, so we do as well. @@ -414,8 +414,10 @@ find . -type f -name .gitignore | xargs rm %build -# LTO is currently incompatible with systemtap/dtrace static probes +# Avoid LTO on armv7hl as we run out of memory +%ifarch armv7hl %define _lto_cflags %{nil} +%endif # fail quickly and obviously if user tries to build as root %if %runselftest @@ -1263,6 +1265,9 @@ make -C postgresql-setup-%{setup_version} check %changelog +* Fri Aug 21 2020 Jeff Law - 12.3-7 +- Renable LTO except for armv7hl + * Tue Jul 28 2020 Fedora Release Engineering - 12.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild