[cxxtools] fix build on s390(x) where atomicity detection fails

Dan Horák sharkcz at fedoraproject.org
Thu Jul 26 13:27:45 UTC 2012


commit 786a1b01edcb040fd506b16ecbaf9b01ab180c38
Author: Dan Horák <dan at danny.cz>
Date:   Thu Jul 26 15:27:39 2012 +0200

    fix build on s390(x) where atomicity detection fails

 cxxtools.spec |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/cxxtools.spec b/cxxtools.spec
index 648f28f..563cc8f 100644
--- a/cxxtools.spec
+++ b/cxxtools.spec
@@ -1,6 +1,6 @@
 Name:           cxxtools
 Version:        2.1.1
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        A collection of general-purpose C++ classes
 
 Group:          System Environment/Libraries
@@ -30,7 +30,11 @@ find -name "*.cpp" -exec chmod -x {} \;
 find -name "*.h" -exec chmod -x {} \;
 
 %build
-%configure --disable-static
+%configure --disable-static \
+%ifarch s390 s390x
+    --with-atomictype=pthread \
+%endif
+    %{nil}
 make %{?_smp_mflags}
 
 
@@ -61,6 +65,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/cxxtools/
 
 %changelog
+* Thu Jul 26 2012 Dan Horák <dan[at]danny.cz> - 2.1.1-4
+- fix build on s390(x) where atomicity detection fails
+
 * Wed Jul 18 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.1.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list