upgrade: disable aggressive loop optimizations

This is important for gcc >= 4.8.0 as the optimizations were turned on by
default.  New code-base is OK thus enable this only for older
(upgrade-related) code.

Resolves: #993532
Version: 9.2.4-10
This commit is contained in:
Pavel Raiskup 2013-08-12 07:32:50 +02:00
parent 9124149d17
commit 4dafc07c13

View File

@ -60,7 +60,7 @@ Summary: PostgreSQL client programs
Name: postgresql
%global majorversion 9.2
Version: 9.2.4
Release: 9%{?dist}
Release: 10%{?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.
@ -576,7 +576,11 @@ rm -f src/tutorial/GNUmakefile
# any options that affect on-disk file layout match the previous
# major release! Also, note we intentionally do not use %%configure
# here, because we *don't* want its ideas about installation paths.
./configure --build=%{_build} --host=%{_host} \
# The -fno-aggressive-loop-optimizations is hack for #993532
CFLAGS="$CFLAGS -fno-aggressive-loop-optimizations" ./configure \
--build=%{_build} \
--host=%{_host} \
--prefix=%{_libdir}/pgsql/postgresql-%{prevmajorversion} \
--disable-rpath \
%if %beta
@ -1124,6 +1128,9 @@ fi
%endif
%changelog
* Mon Aug 12 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-10
- disable aggressive loop optimizations for old codebase (#993532)
* Wed Aug 07 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.4-9
- generate links docdir links in postgresql-check-db-dir correctly (#994048)