Disable LTO

This commit is contained in:
Jeff Law 2020-07-24 08:16:10 -06:00
parent 9d4f3560bd
commit 86232b0ac4

View File

@ -61,7 +61,7 @@ Summary: PostgreSQL client programs
Name: postgresql Name: postgresql
%global majorversion 12 %global majorversion 12
Version: %{majorversion}.3 Version: %{majorversion}.3
Release: 4%{?dist} Release: 5%{?dist}
# The PostgreSQL license is very similar to other MIT licenses, but the OSI # The PostgreSQL license is very similar to other MIT licenses, but the OSI
# recognizes it as an independent license, so we do as well. # recognizes it as an independent license, so we do as well.
@ -413,6 +413,10 @@ find . -type f -name .gitignore | xargs rm
%build %build
# LTO is currently incompatible with systemtap/dtrace static probes
%define _lto_cflags %{nil}
# fail quickly and obviously if user tries to build as root # fail quickly and obviously if user tries to build as root
%if %runselftest %if %runselftest
if [ x"`id -u`" = x0 ]; then if [ x"`id -u`" = x0 ]; then
@ -1259,6 +1263,9 @@ make -C postgresql-setup-%{setup_version} check
%changelog %changelog
* Fri Jul 24 2020 Jeff Law <law@redhat.com> - 12.3-5
- Disable LTO
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 12.3-4 * Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 12.3-4
- Perl 5.32 rebuild - Perl 5.32 rebuild