]> git.pld-linux.org Git - packages/audacity.git/commitdiff
- disable SSE/SSE2 on ix86
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 23 Jan 2021 09:57:59 +0000 (10:57 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 23 Jan 2021 09:57:59 +0000 (10:57 +0100)
audacity.spec
no-sse.patch [new file with mode: 0644]

index 2db249797bebdcce7e117d569539e65e24cdbc0e..1eac03deb54405a9a04273b24587a0c6b526b55b 100644 (file)
@@ -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 (file)
index 0000000..46b9776
--- /dev/null
@@ -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 )
This page took 0.029918 seconds and 4 git commands to generate.