2022-09-12 15:17:28 +02:00
|
|
|
-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.
|
|
|
|
|
2023-01-23 17:16:23 +01:00
|
|
|
Index: soundtouch/CMakeLists.txt
|
|
|
|
===================================================================
|
|
|
|
--- soundtouch.orig/CMakeLists.txt
|
|
|
|
+++ soundtouch/CMakeLists.txt
|
|
|
|
@@ -3,13 +3,6 @@ project(SoundTouch VERSION 2.3.2 LANGUAG
|
2022-09-12 15:17:28 +02:00
|
|
|
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
|
|
|
|
-if(MSVC)
|
|
|
|
- set(COMPILE_DEFINITIONS /O2 /fp:fast)
|
|
|
|
- set(COMPILE_OPTIONS )
|
|
|
|
-else()
|
|
|
|
- set(COMPILE_OPTIONS -Ofast)
|
|
|
|
-endif()
|
|
|
|
-
|
|
|
|
#####################
|
|
|
|
# SoundTouch library
|
|
|
|
|
2023-01-23 17:16:23 +01:00
|
|
|
Index: soundtouch/configure.ac
|
|
|
|
===================================================================
|
|
|
|
--- soundtouch.orig/configure.ac
|
|
|
|
+++ soundtouch/configure.ac
|
|
|
|
@@ -33,7 +33,7 @@ AC_LANG(C++)
|
2022-09-12 15:17:28 +02:00
|
|
|
|
2023-01-23 17:16:23 +01:00
|
|
|
# Compiler flags. Apply -Ofast (implies -O3 -ffast-math) to allow gcc autovectorization
|
2022-09-12 15:17:28 +02:00
|
|
|
# generate effective SIMD code.
|
2023-01-23 17:16:23 +01:00
|
|
|
-CXXFLAGS+=" -Ofast"
|
|
|
|
+CXXFLAGS+=" -O2"
|
2022-09-12 15:17:28 +02:00
|
|
|
|
|
|
|
# Set AR_FLAGS to avoid build warning "ar: `u' modifier ignored since `D' is the default (see `U')"
|
|
|
|
AR_FLAGS='cr'
|