[gnutls] Added work-around for s390 builds with gcc 4.9 (#1102324)

Nikos Mavrogiannopoulos nmav at fedoraproject.org
Tue Jul 1 13:07:21 UTC 2014


commit 5560d4eeaa3760cca07d65a98ff80aed8e14ac4a
Author: Nikos Mavrogiannopoulos <nmav at redhat.com>
Date:   Tue Jul 1 13:41:17 2014 +0200

    Added work-around for s390 builds with gcc 4.9 (#1102324)

 gnutls.spec |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gnutls.spec b/gnutls.spec
index 1e70ad8..bd66d82 100644
--- a/gnutls.spec
+++ b/gnutls.spec
@@ -3,7 +3,7 @@
 Summary: A TLS protocol implementation
 Name: gnutls
 Version: 3.3.5
-Release: 1%{?dist}
+Release: 2%{?dist}
 # The libraries are LGPLv2.1+, utilities are GPLv3+
 License: GPLv3+ and LGPLv2+
 Group: System Environment/Libraries
@@ -147,6 +147,10 @@ sed 's/gnutls_srp.lo//g' -i lib/Makefile.in
 %{SOURCE2} -e
 
 %build
+# add workaround for rhbz#1102324
+%ifarch s390
+%global optflags %optflags -O1
+%endif
 
 export LDFLAGS="-Wl,--no-add-needed"
 
@@ -274,6 +278,9 @@ fi
 %endif
 
 %changelog
+* Tue Jul 01 2014 Nikos Mavrogiannopoulos <nmav at redhat.com> 3.3.5-2
+- Added work-around for s390 builds with gcc 4.9 (#1102324)
+
 * Mon Jun 30 2014 Nikos Mavrogiannopoulos <nmav at redhat.com> 3.3.5-1
 - new upstream release
 


More information about the scm-commits mailing list