[odb] Just use two expressions since >= didn't work

Dave Johansen daveisfera at fedoraproject.org
Fri Nov 7 13:22:05 UTC 2014


commit 85be6b5027d12b2edda08fd7c70255e8aad3899c
Author: Dave Johansen <davejohansen at gmail.com>
Date:   Fri Nov 7 06:21:54 2014 -0700

    Just use two expressions since >= didn't work

 odb.spec |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/odb.spec b/odb.spec
index fbd34b3..977f148 100644
--- a/odb.spec
+++ b/odb.spec
@@ -65,9 +65,12 @@ columns, or SQL and without manually writing any of the mapping code.
 %build
 confopts="--disable-static --with-options-file=%{odb_default_options_file}"
 # If on a GCC version with de-virtualization bug
-%if %{gcc_version} >= 4.9.0
+%if "%{gcc_version}" == "4.9.0"
 # gcc 4.9.0 has a de-virtualization bug
 # See: http://codesynthesis.com/pipermail/odb-users/2014-May/001865.html
+export CXXFLAGS="$RPM_OPT_FLAGS -fno-devirtualize"
+%endif
+%if "%{gcc_version}" == "4.9.2"
 # And 4.9.2 apparently does as well:
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60871
 export CXXFLAGS="$RPM_OPT_FLAGS -fno-devirtualize"


More information about the scm-commits mailing list