From 0a11d5b9f79d5ebabf5fb084df55be48b0902ecb Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 17 Jul 2021 17:17:28 +0100 Subject: [PATCH] Fix libsndfile with macos-old --- bootstrap-common.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bootstrap-common.sh b/bootstrap-common.sh index a07520f..bda33e0 100755 --- a/bootstrap-common.sh +++ b/bootstrap-common.sh @@ -113,7 +113,11 @@ build_autoconf libsamplerate "${LIBSAMPLERATE_VERSION}" "--disable-fftw --disabl # libsndfile download libsndfile "${LIBSNDFILE_VERSION}" "https://github.com/libsndfile/libsndfile/releases/download/${LIBSNDFILE_VERSION}" "tar.bz2" -patch_file libsndfile "${LIBSNDFILE_VERSION}" "configure" 's/ -Wvla//' + +if [ "${MACOS_OLD}" -eq 1 ]; then + patch_file libsndfile "${LIBSNDFILE_VERSION}" "src/sfconfig.h" 's/#define USE_SSE2/#undef USE_SSE2/' +fi + build_autoconf libsndfile "${LIBSNDFILE_VERSION}" "--disable-alsa --disable-full-suite --disable-sqlite" # ---------------------------------------------------------------------------------------------------------------------