From 2f4174b6392479e3c5a9146dabfbf39342b38ffd Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 22 Jan 2009 07:36:28 +0000 Subject: [PATCH] build -O1 sparc64 --- postgresql.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/postgresql.spec b/postgresql.spec index 385c596..9efd66d 100755 --- a/postgresql.spec +++ b/postgresql.spec @@ -83,7 +83,7 @@ Summary: PostgreSQL client programs and libraries Name: postgresql Version: 8.3.5 -Release: 3%{?dist} +Release: 4%{?dist} License: BSD Group: Applications/Databases Url: http://www.postgresql.org/ @@ -393,6 +393,10 @@ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS # Strip out -ffast-math from CFLAGS.... CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100` +# use -O1 on sparc64 +%ifarch sparc64 +CFLAGS=`echo $CFLAGS| sed -e "s|-O2|-O1|g" ` +%endif # Use --as-needed to eliminate unnecessary link dependencies. # Hopefully upstream will do this for itself in some future release. @@ -859,6 +863,9 @@ rm -rf $RPM_BUILD_ROOT %endif %changelog +* Wed Jan 21 2009 Dennis Gilmore 8.3.5-4 +- use -O1 on sparc64 + * Sat Jan 17 2009 Tomas Mraz - 8.3.5-3 - rebuild with new openssl