From: Jan Rękorajski Date: Sat, 23 Jan 2021 09:57:59 +0000 (+0100) Subject: - disable SSE/SSE2 on ix86 X-Git-Tag: auto/th/audacity-2.4.2-2~4 X-Git-Url: http://git.pld-linux.org/?p=packages%2Faudacity.git;a=commitdiff_plain;h=5b6d905be703439da665b813a00d752a5fdbeccf - disable SSE/SSE2 on ix86 --- 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 )