SHA256
1
0
forked from pool/soundtouch

Accepting request 1002494 from home:dirkmueller:Factory

- add disable-ffast-math.patch

OBS-URL: https://build.opensuse.org/request/show/1002494
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/soundtouch?expand=0&rev=39
This commit is contained in:
Takashi Iwai 2022-09-12 13:17:28 +00:00 committed by Git OBS Bridge
parent b2aa2e8721
commit b02f01e2ae
3 changed files with 41 additions and 1 deletions

33
disable-ffast-math.patch Normal file
View File

@ -0,0 +1,33 @@
-ffast-math changes the floating point rounding mode globally, which
is undesirable for shared libraries.
see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55522
for details.
--- soundtouch/CMakeLists.txt 2021-09-07 17:26:53.000000000 +0200
+++ soundtouch/CMakeLists.txt 2022-09-11 10:52:23.945515340 +0200
@@ -3,13 +3,6 @@
include(GNUInstallDirs)
-if(MSVC)
- set(COMPILE_DEFINITIONS /O2 /fp:fast)
- set(COMPILE_OPTIONS )
-else()
- set(COMPILE_OPTIONS -Ofast)
-endif()
-
#####################
# SoundTouch library
--- soundtouch/configure.ac 2021-09-07 17:26:53.000000000 +0200
+++ soundtouch/configure.ac 2022-09-11 10:52:44.845868245 +0200
@@ -33,7 +33,7 @@
# Compiler flags. Apply -ffast-math to allow gcc autovectorization
# generate effective SIMD code.
-CXXFLAGS+=" -O3 -ffast-math"
+CXXFLAGS+=" -O3 "
# Set AR_FLAGS to avoid build warning "ar: `u' modifier ignored since `D' is the default (see `U')"
AR_FLAGS='cr'

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Sep 11 08:55:11 UTC 2022 - Dirk Müller <dmueller@suse.com>
- add disable-ffast-math.patch
-------------------------------------------------------------------
Sun Dec 5 19:18:19 UTC 2021 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package soundtouch
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -27,6 +27,7 @@ URL: https://www.surina.net/soundtouch
Source: https://codeberg.org/soundtouch/soundtouch/archive/%{version}.tar.gz
Source1: https://salsa.debian.org/multimedia-team/soundtouch/raw/master/debian/soundstretch.1
Source99: baselibs.conf
Patch1: disable-ffast-math.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: dos2unix
@ -71,6 +72,7 @@ SoundTouch.
%prep
%setup -q -n %{name}
%patch1 -p1
dos2unix README.html
%build