[odb] Build with $RPM_OPT_FLAGS

Dave Johansen daveisfera at fedoraproject.org
Sun Jul 6 22:34:06 UTC 2014


commit f046ee3c5eb63d1e90fda9ad6fad041e54c91285
Author: Dave Johansen <davejohansen at gmail.com>
Date:   Sun Jul 6 15:34:17 2014 -0700

    Build with $RPM_OPT_FLAGS

 odb.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/odb.spec b/odb.spec
index f19189d..bc4686f 100644
--- a/odb.spec
+++ b/odb.spec
@@ -1,6 +1,6 @@
 Name:           odb
 Version:        2.3.0
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Object-relational mapping (ORM) system for C++
 
 Group:          Development/Tools
@@ -68,7 +68,7 @@ confopts="--disable-static --with-options-file=%{odb_default_options_file}"
 %if 0%{?rhel}%{?fedora} >= 21
 # gcc 4.9.0 has a de-virtualization bug
 # See: http://codesynthesis.com/pipermail/odb-users/2014-May/001865.html
-confopts="$confopts CXXFLAGS=-fno-devirtualize"
+export CXXFLAGS="$RPM_OPT_FLAGS -fno-devirtualize"
 %endif
 # If building on RHEL 5/6
 %if 0%{?rhel}%{?fedora} <= 6
@@ -130,6 +130,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sun Jul  6 2014 Ville Skyttä <ville.skytta at iki.fi> - 2.3.0-5
+- Build with $RPM_OPT_FLAGS
+
 * Wed Jun 11 2014 Dave Johansen <davejohansen at gmail.com> 2.3.0-4
 - Patch to build with gcc 4.9
 


More information about the scm-commits mailing list