summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpostgresql.spec9
1 files changed, 8 insertions, 1 deletions
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 <dennis@ausil.us> 8.3.5-4
+- use -O1 on sparc64
+
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 8.3.5-3
- rebuild with new openssl