[libint] Use -O1 optimization for the library.
Susi Lehtola
jussilehtola at fedoraproject.org
Sun Dec 22 20:44:24 UTC 2013
commit 24c9e619bbc8c68b55be4b0070156dced1691f08
Author: Susi Lehtola <jussilehtola at fedoraproject.org>
Date: Sun Dec 22 22:44:13 2013 +0200
Use -O1 optimization for the library.
libint.spec | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/libint.spec b/libint.spec
index db5d942..c433687 100644
--- a/libint.spec
+++ b/libint.spec
@@ -1,3 +1,6 @@
+# Please void making new releases of the package, because all depending
+# packages will be needing rebuilds.
+
Name: libint
Version: 1.1.5
Release: 3%{?dist}
@@ -99,7 +102,10 @@ ulimit -s unlimited
--with-libderiv-max-am1=6 --with-libderiv-max-am2=5 \
--with-libr12-max-am=5 --with-libr12-opt-am=4
-make CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" %{?_smp_mflags}
+# The generated library is already highly optimized for performance,
+# so it's safe to use a lower level of compiler optimization here.
+oflags=`echo %{optflags} | sed "s|-O2|-O1|g"`
+make CFLAGS="${oflags}" CXXFLAGS="${oflags}" %{?_smp_mflags}
# Build documentation
cd doc/progman
@@ -160,6 +166,7 @@ rm -rf %{buildroot}
%changelog
* Sun Dec 22 2013 Susi Lehtola <jussilehtola at fedoraproject.org> - 1.1.5-3
- Increase maximum angular momentum (BZ #1045781), but limit optimized one.
+- Use -O1 level of optimization on all architectures.
- Patch for -Werror=format-security (BZ #1037165).
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1.5-2
More information about the scm-commits
mailing list