diff --git a/disable-ffast-math.patch b/disable-ffast-math.patch new file mode 100644 index 0000000..b4bd63c --- /dev/null +++ b/disable-ffast-math.patch @@ -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' diff --git a/soundtouch.changes b/soundtouch.changes index bb2c1a4..86d9c3f 100644 --- a/soundtouch.changes +++ b/soundtouch.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Sep 11 08:55:11 UTC 2022 - Dirk Müller + +- add disable-ffast-math.patch + ------------------------------------------------------------------- Sun Dec 5 19:18:19 UTC 2021 - Dirk Müller diff --git a/soundtouch.spec b/soundtouch.spec index 7c59027..f1bb802 100644 --- a/soundtouch.spec +++ b/soundtouch.spec @@ -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