Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/openal/openal-i686.patch
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-12-12 19:37:27 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2019-12-12 19:37:27 +0100
commit332d58575b99b2db61bebb96ae74fd30f0dfd512 (patch)
tree5bb4e35ca919e5a0da74e6de536b9c471621d48f /extra/openal/openal-i686.patch
parentb55f4c51514b8af8e2c6ec878a8ee03f29dfaa13 (diff)
extra/openal: new patching of SSE2, etc.
Diffstat (limited to 'extra/openal/openal-i686.patch')
-rw-r--r--extra/openal/openal-i686.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/extra/openal/openal-i686.patch b/extra/openal/openal-i686.patch
new file mode 100644
index 00000000..44261849
--- /dev/null
+++ b/extra/openal/openal-i686.patch
@@ -0,0 +1,53 @@
+diff -rauN openal/CMakeLists.txt openal-i686-patch/CMakeLists.txt
+--- openal/CMakeLists.txt 2019-12-12 17:07:05.966917263 +0100
++++ openal-i686-patch/CMakeLists.txt 2019-12-12 19:11:43.256675497 +0100
+@@ -307,28 +307,28 @@
+ SET(SSE4_1_SWITCH "")
+ SET(FPU_NEON_SWITCH "")
+
+-CHECK_C_COMPILER_FLAG(-msse2 HAVE_MSSE2_SWITCH)
+-IF(HAVE_MSSE2_SWITCH)
+- SET(SSE2_SWITCH "-msse2")
+-ENDIF()
+-CHECK_C_COMPILER_FLAG(-msse3 HAVE_MSSE3_SWITCH)
+-IF(HAVE_MSSE3_SWITCH)
+- SET(SSE3_SWITCH "-msse3")
+-ENDIF()
+-CHECK_C_COMPILER_FLAG(-msse4.1 HAVE_MSSE4_1_SWITCH)
+-IF(HAVE_MSSE4_1_SWITCH)
+- SET(SSE4_1_SWITCH "-msse4.1")
+-ENDIF()
+-CHECK_C_COMPILER_FLAG(-mfpu=neon HAVE_MFPU_NEON_SWITCH)
+-IF(HAVE_MFPU_NEON_SWITCH)
+- SET(FPU_NEON_SWITCH "-mfpu=neon")
+-ENDIF()
++#~ CHECK_C_COMPILER_FLAG(-msse2 HAVE_MSSE2_SWITCH)
++#~ IF(HAVE_MSSE2_SWITCH)
++ #~ SET(SSE2_SWITCH "-msse2")
++#~ ENDIF()
++#~ CHECK_C_COMPILER_FLAG(-msse3 HAVE_MSSE3_SWITCH)
++#~ IF(HAVE_MSSE3_SWITCH)
++ #~ SET(SSE3_SWITCH "-msse3")
++#~ ENDIF()
++#~ CHECK_C_COMPILER_FLAG(-msse4.1 HAVE_MSSE4_1_SWITCH)
++#~ IF(HAVE_MSSE4_1_SWITCH)
++ #~ SET(SSE4_1_SWITCH "-msse4.1")
++#~ ENDIF()
++#~ CHECK_C_COMPILER_FLAG(-mfpu=neon HAVE_MFPU_NEON_SWITCH)
++#~ IF(HAVE_MFPU_NEON_SWITCH)
++ #~ SET(FPU_NEON_SWITCH "-mfpu=neon")
++#~ ENDIF()
+
+-CHECK_INCLUDE_FILE(xmmintrin.h HAVE_XMMINTRIN_H "${SSE2_SWITCH}")
+-CHECK_INCLUDE_FILE(emmintrin.h HAVE_EMMINTRIN_H "${SSE2_SWITCH}")
+-CHECK_INCLUDE_FILE(pmmintrin.h HAVE_PMMINTRIN_H "${SSE3_SWITCH}")
+-CHECK_INCLUDE_FILE(smmintrin.h HAVE_SMMINTRIN_H "${SSE4_1_SWITCH}")
+-CHECK_INCLUDE_FILE(arm_neon.h HAVE_ARM_NEON_H "${FPU_NEON_SWITCH}")
++#~ CHECK_INCLUDE_FILE(xmmintrin.h HAVE_XMMINTRIN_H "${SSE2_SWITCH}")
++#~ CHECK_INCLUDE_FILE(emmintrin.h HAVE_EMMINTRIN_H "${SSE2_SWITCH}")
++#~ CHECK_INCLUDE_FILE(pmmintrin.h HAVE_PMMINTRIN_H "${SSE3_SWITCH}")
++#~ CHECK_INCLUDE_FILE(smmintrin.h HAVE_SMMINTRIN_H "${SSE4_1_SWITCH}")
++#~ CHECK_INCLUDE_FILE(arm_neon.h HAVE_ARM_NEON_H "${FPU_NEON_SWITCH}")
+
+ SET(SSE_FLAGS )
+ SET(FPMATH_SET "0")