summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-03-18 13:19:10 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2021-03-18 13:19:10 +0100
commit512724714dde3e881403f504b0a5a4d6930ff083 (patch)
tree6c806c939721c25ebea4cb9a19c003a0d86d870c
parent5b87ea1cdbeb2916176a3b77df06f1824a10af88 (diff)
downloadpackages-512724714dde3e881403f504b0a5a4d6930ff083.tar.xz
extra/libsndfile: no SSE2 on i486 and i686
-rw-r--r--extra/libsndfile/libsndfile-1.0.31-no-sse2.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/extra/libsndfile/libsndfile-1.0.31-no-sse2.patch b/extra/libsndfile/libsndfile-1.0.31-no-sse2.patch
new file mode 100644
index 00000000..01bc9833
--- /dev/null
+++ b/extra/libsndfile/libsndfile-1.0.31-no-sse2.patch
@@ -0,0 +1,32 @@
+diff -rauN libsndfile-1.0.31/CMakeLists.txt libsndfile-1.0.31-no-sse2-patch/CMakeLists.txt
+--- libsndfile-1.0.31/CMakeLists.txt 2021-01-24 13:22:23.000000000 +0100
++++ libsndfile-1.0.31-no-sse2-patch/CMakeLists.txt 2021-03-18 12:58:16.439769086 +0100
+@@ -86,17 +86,17 @@
+ cmake_dependent_option (ENABLE_COMPATIBLE_LIBSNDFILE_NAME "Set DLL name to libsndfile-1.dll (canonical name), sndfile.dll otherwise" OFF "WIN32;BUILD_SHARED_LIBS" OFF)
+ cmake_dependent_option (INSTALL_MANPAGES "Install man pages for programs" ON "BUILD_PROGRAMS" OFF)
+
+-if (NOT MSVC)
+- if (CPU_IS_X86)
+- check_c_compiler_flag (-msse2 HAVE_MSSE2_COMPILER_FLAG)
+- if (HAVE_MSSE2_COMPILER_FLAG)
+- cmake_dependent_option (ENABLE_SSE2 "Add SSE2 compiler flag" ON "HAVE_MSSE2_COMPILER_FLAG" OFF)
+- endif ()
+- endif ()
+-endif ()
+-if (ENABLE_SSE2)
+- add_compile_options (-msse2)
+-endif ()
++#if (NOT MSVC)
++# if (CPU_IS_X86)
++# check_c_compiler_flag (-msse2 HAVE_MSSE2_COMPILER_FLAG)
++# if (HAVE_MSSE2_COMPILER_FLAG)
++# cmake_dependent_option (ENABLE_SSE2 "Add SSE2 compiler flag" ON "HAVE_MSSE2_COMPILER_FLAG" OFF)
++# endif ()
++# endif ()
++#endif ()
++#if (ENABLE_SSE2)
++# add_compile_options (-msse2)
++#endif ()
+
+ set (HAVE_EXTERNAL_XIPH_LIBS ${ENABLE_EXTERNAL_LIBS})
+ set (HAVE_SQLITE3 ${BUILD_REGTEST})