[ustl/f21] Remove -march=native, disable SSE on ix86

Yaakov Selkowitz yselkowitz at fedoraproject.org
Fri Aug 8 08:43:41 UTC 2014


commit e550ac4875669553e177075355070146c6dd9568
Author: Yaakov Selkowitz <yselkowi at redhat.com>
Date:   Fri Aug 8 02:47:26 2014 -0500

    Remove -march=native, disable SSE on ix86

 ustl.spec |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/ustl.spec b/ustl.spec
index 5d17be0..9c2627c 100644
--- a/ustl.spec
+++ b/ustl.spec
@@ -1,6 +1,6 @@
 Name:           ustl
 Version:        2.1
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        A size-optimized STL implementation
 License:        MIT
 URL:            http://msharov.github.io/ustl/
@@ -48,8 +48,17 @@ sed -i -e 's|/usr/lib|%{_libdir}|g'                    \
        -e 's|CXXFLAGS	:=|override CXXFLAGS	+=|g'  \
        Config.mk.in
 
+# Do not interfere with optflags
+sed -i -e 's|-march=native||g' configure
+
 %build
-./configure --with-libstdc++ --force-inline --prefix=%{buildroot}%{_prefix}
+./configure \
+  --prefix=%{buildroot}%{_prefix} \
+%ifarch %{ix86}
+  --without-mmx \
+%endif
+  --with-libstdc++ --force-inline
+
 %make_build CXXFLAGS+="%{optflags}"
 
 %install
@@ -75,6 +84,10 @@ make check
 %{_libdir}/libustl.so
 
 %changelog
+* Fri Aug 08 2014 Yaakov Selkowitz <yselkowi at redhat.com> - 2.1-3
+- Remove -march=native
+- Disable SSE on ix86 (not supported by default optflags)
+
 * Tue Jul 29 2014 Christopher Meng <rpm at cicku.me> - 2.1-2
 - Fix library location on lib64 system.
 


More information about the scm-commits mailing list