commit 5b6d905be703439da665b813a00d752a5fdbeccf
Author: Jan Rękorajski <[email protected]>
Date:   Sat Jan 23 10:57:59 2021 +0100

    - disable SSE/SSE2 on ix86

 audacity.spec |  4 ++++
 no-sse.patch  | 19 +++++++++++++++++++
 2 files changed, 23 insertions(+)
---
diff --git a/audacity.spec b/audacity.spec
index 2db2497..1eac03d 100644
--- a/audacity.spec
+++ b/audacity.spec
@@ -26,6 +26,7 @@ Source1:      %{name}-manual-%{version}.zip
 Patch0:                %{name}-opt.patch
 Patch1:                %{name}-no-macos.patch
 Patch2:                %{name}-desktop.patch
+Patch3:                no-sse.patch
 URL:           http://audacityteam.org/
 BuildRequires: alsa-lib-devel
 BuildRequires: autoconf >= 2.59
@@ -105,6 +106,9 @@ Audacity - это звуковой редактор, позволяющий ра
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%ifarch %{ix86}
+%patch3 -p1
+%endif
 
 %{__sed} -i 's/libmp3lame.so/libmp3lame.so.0/g' locale/*.po
 
diff --git a/no-sse.patch b/no-sse.patch
new file mode 100644
index 0000000..46b9776
--- /dev/null
+++ b/no-sse.patch
@@ -0,0 +1,19 @@
+--- audacity-minsrc-2.4.2/CMakeLists.txt~      2020-05-30 13:55:53.000000000 
+0200
++++ audacity-minsrc-2.4.2/CMakeLists.txt       2021-01-23 10:56:11.555735531 
+0100
+@@ -232,16 +232,6 @@
+    if( HAVE_MMX )
+       set( MMX_FLAG "-mmmx" CACHE INTERNAL "" )
+    endif()
+-
+-   check_cxx_compiler_flag( "-msse" HAVE_SSE )
+-   if( HAVE_SSE )
+-      set( SSE_FLAG "-msse" CACHE INTERNAL "" )
+-   endif()
+-
+-   check_cxx_compiler_flag( "-msse2" HAVE_SSE2 )
+-   if( HAVE_SSE2 )
+-      set( SSE_FLAG "-msse2" CACHE INTERNAL "" )
+-   endif()
+ elseif( CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
+    set( HAVE_MMX ON )
+    set( HAVE_SSE ON )
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/audacity.git/commitdiff/5b6d905be703439da665b813a00d752a5fdbeccf

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to