1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Fix build of filter_audio on unix

This commit is contained in:
Sandro Santilli 2015-02-21 21:01:11 +01:00
parent c63a0153cf
commit fd873fecb4

View File

@ -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