aboutsummaryrefslogtreecommitdiff
path: root/multimedia/mswebrtc
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2018-11-11 11:45:11 +0000
committerJan Beich <jbeich@FreeBSD.org>2018-11-11 11:45:11 +0000
commit9adb469c8371aa40d88e402ff716d1035ed308b6 (patch)
tree65f297201bd402d11a7ddbc6c087acf7582863c0 /multimedia/mswebrtc
parent1b1cf50789517ad79596df2361eca320e10863c1 (diff)
multimedia/mswebrtc: unbreak build on i386
webrtc/webrtc/modules/audio_processing/aec/aec_core_sse2.c:46:31: error: always_inline function '_mm_loadu_ps' requires target feature 'mmx', but would be inlined into function 'FilterFarSSE2' that is compiled without support for 'mmx' const __m128 xfBuf_re = _mm_loadu_ps(&aec->xfBuf[0][xPos + j]); ^ webrtc/webrtc/modules/audio_processing/aec/aec_core_sse2.c:52:24: error: always_inline function '_mm_mul_ps' requires target feature 'mmx', but would be inlined into function 'FilterFarSSE2' that is compiled without support for 'mmx' const __m128 a = _mm_mul_ps(xfBuf_re, wfBuf_re); ^ webrtc/webrtc/modules/audio_processing/aec/aec_core_sse2.c:56:24: error: always_inline function '_mm_sub_ps' requires target feature 'mmx', but would be inlined into function 'FilterFarSSE2' that is compiled without support for 'mmx' const __m128 e = _mm_sub_ps(a, b); ^ webrtc/webrtc/modules/audio_processing/aec/aec_core_sse2.c:57:24: error: always_inline function '_mm_add_ps' requires target feature 'mmx', but would be inlined into function 'FilterFarSSE2' that is compiled without support for 'mmx' const __m128 f = _mm_add_ps(c, d); ^ webrtc/webrtc/modules/audio_processing/aec/aec_core_sse2.c:60:7: error: always_inline function '_mm_storeu_ps' requires target feature 'mmx', but would be inlined into function 'FilterFarSSE2' that is compiled without support for 'mmx' _mm_storeu_ps(&yf[0][j], g); ^ webrtc/webrtc/modules/audio_processing/aec/aec_core_sse2.c:78:26: error: always_inline function '_mm_set1_ps' requires target feature 'mmx', but would be inlined into function 'ScaleErrorSignalSSE2' that is compiled without support for 'mmx' const __m128 k1e_10f = _mm_set1_ps(1e-10f); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] Reported by: pkg-fallout
Notes
Notes: svn path=/head/; revision=484685
Diffstat (limited to 'multimedia/mswebrtc')
-rw-r--r--multimedia/mswebrtc/files/patch-CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/multimedia/mswebrtc/files/patch-CMakeLists.txt b/multimedia/mswebrtc/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..0ec1a163a101
--- /dev/null
+++ b/multimedia/mswebrtc/files/patch-CMakeLists.txt
@@ -0,0 +1,16 @@
+i386 target on BSDs doesn't include SSE2 by default
+
+--- CMakeLists.txt.orig 2017-07-20 13:56:58 UTC
++++ CMakeLists.txt
+@@ -204,6 +204,11 @@ if(ENABLE_AEC)
+ ${AEC_SRC_DIR}/aec_core_sse2.c
+ ${AEC_SRC_DIR}/aec_rdft_sse2.c
+ )
++ set_source_files_properties(
++ ${AEC_SRC_DIR}/aec_core_sse2.c
++ ${AEC_SRC_DIR}/aec_rdft_sse2.c
++ PROPERTIES COMPILE_FLAGS "-msse2"
++ )
+ endif()
+ include_directories(
+ ${AEC_SRC_DIR}/include