From c63a0153cffdc68058000586ed4868b48e419b8b Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sat, 21 Feb 2015 20:41:55 +0100 Subject: [PATCH 1/2] Handle more errors --- install_libfilteraudio.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install_libfilteraudio.sh b/install_libfilteraudio.sh index 922bfca59..605e09b22 100755 --- a/install_libfilteraudio.sh +++ b/install_libfilteraudio.sh @@ -27,13 +27,16 @@ fi echo "Cloning filter_audio from GitHub.com" git clone https://github.com/irungentoo/filter_audio.git $SOURCE_DIR +[ $? -eq 0 ] || exit 1 echo "Compiling filter_audio" cd $SOURCE_DIR gcc -c -fPIC filter_audio.c aec/*.c agc/*.c ns/*.c other/*.c -lm -lpthread +[ $? -eq 0 ] || exit 1 echo "Creating shared object file" gcc *.o -shared -o libfilteraudio.$EXT -Wl,--out-implib,libfilteraudio.$STATIC_EXT +[ $? -eq 0 ] || exit 1 echo "Cleaning up" rm *.o From fd873fecb473f5473024a74121abf8d0f926c9a4 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sat, 21 Feb 2015 21:01:11 +0100 Subject: [PATCH 2/2] Fix build of filter_audio on unix --- install_libfilteraudio.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install_libfilteraudio.sh b/install_libfilteraudio.sh index 605e09b22..660548200 100755 --- a/install_libfilteraudio.sh +++ b/install_libfilteraudio.sh @@ -35,8 +35,16 @@ gcc -c -fPIC filter_audio.c aec/*.c agc/*.c ns/*.c other/*.c -lm -lpthread [ $? -eq 0 ] || exit 1 echo "Creating shared object file" -gcc *.o -shared -o libfilteraudio.$EXT -Wl,--out-implib,libfilteraudio.$STATIC_EXT -[ $? -eq 0 ] || exit 1 +if [ ! -z "$WINDOWS_VERSION" ]; then + # This is for MingGW: + gcc *.o -shared -o libfilteraudio.$EXT -Wl,--out-implib,libfilteraudio.$STATIC_EXT + [ $? -eq 0 ] || exit 1 +else + # This is for rest of the world: + make + [ $? -eq 0 ] || exit 1 + ln libfilteraudio.$EXT.* libfilteraudio.so +fi echo "Cleaning up" rm *.o