Skip to content

Commit

Permalink
Disable building vectorized code for lame
Browse files Browse the repository at this point in the history
On some versions of Emscripten/configurations check for xmmintrin
returns true but the vectorized code fails to build.
See: #16
  • Loading branch information
Kagami committed Oct 11, 2016
1 parent f714b42 commit 2aa2509
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ build/libvpx/dist/lib/libvpx.so:

build/lame/dist/lib/libmp3lame.so:
cd build/lame && \
git reset --hard && \
patch -p1 < ../lame-configure.patch && \
emconfigure ./configure \
--prefix="$$(pwd)/dist" \
--host=x86-none-linux \
Expand Down
13 changes: 13 additions & 0 deletions build/lame-configure.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/configure b/configure
index 87aef96..d8f614d 100755
--- a/configure
+++ b/configure
@@ -15680,7 +15680,7 @@ $as_echo "#define USE_FAST_LOG 1" >>confdefs.h
;;
*86)
CPUTYPE="i386"
- if test $ac_cv_header_xmmintrin_h = yes ; then
+ if false ; then
WITH_XMM=yes
WITH_VECTOR=yes
fi

0 comments on commit 2aa2509

Please sign in to comment.