summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-09-01 18:11:03 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-09-01 18:11:03 (GMT)
commitcbcef2238e22d0793388946ba925a6e964d9a1af (patch)
tree1f366df38a8ac4447fec97031cab7ccd6d8ea06a /src
parent4f9691f84c322f7eb46b75b4b9bc867dfa7f5a8d (diff)
downloadmxe-cbcef2238e22d0793388946ba925a6e964d9a1af.zip
mxe-cbcef2238e22d0793388946ba925a6e964d9a1af.tar.gz
mxe-cbcef2238e22d0793388946ba925a6e964d9a1af.tar.bz2
libsndfile: Fix assertion failure
Should fix #499. Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/libsndfile-1-fixes.patch28
-rw-r--r--src/libsndfile.mk1
2 files changed, 29 insertions, 0 deletions
diff --git a/src/libsndfile-1-fixes.patch b/src/libsndfile-1-fixes.patch
new file mode 100644
index 0000000..23f51d9
--- /dev/null
+++ b/src/libsndfile-1-fixes.patch
@@ -0,0 +1,28 @@
+This file is part of MXE.
+See index.html for further information.
+
+Taken from https://github.com/erikd/libsndfile/pull/76
+
+From 9ce0175df1fcb3db7a63ba8a72712b4676a3af86 Mon Sep 17 00:00:00 2001
+From: Timothy Gu <timothygu99@gmail.com>
+Date: Mon, 1 Sep 2014 11:05:13 -0700
+Subject: [PATCH] configure.ac: Fix detection of MinGW
+
+Signed-off-by: Timothy Gu <timothygu99@gmail.com>
+
+diff --git a/configure.ac b/configure.ac
+index 20ba55a..d25201c 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -168,7 +168,7 @@ unset ac_cv_sizeof_off_t
+ AC_CHECK_SIZEOF(off_t,1) # Fake default value.
+
+ case "$host_os" in
+- mingw32msvc | mingw32)
++ mingw32*)
+ TYPEOF_SF_COUNT_T="__int64"
+ SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
+ SIZEOF_SF_COUNT_T=8
+--
+1.9.1
+
diff --git a/src/libsndfile.mk b/src/libsndfile.mk
index 9ff4140..dfe6bb4 100644
--- a/src/libsndfile.mk
+++ b/src/libsndfile.mk
@@ -18,6 +18,7 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
+ cd '$(1)' && autoreconf -fi
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--enable-sqlite \