forked from lucianodato/speech-denoiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
static_rnnoise.sh
executable file
·31 lines (28 loc) · 1.03 KB
/
static_rnnoise.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
cd rnnoise/
./autogen.sh
mv ../ltmain.sh ./ && ./autogen.sh # Dang, what with this thing
if [ "$(uname)" == "Darwin" ]; then
CFLAGS="-fvisibility=hidden -fPIC " \
./configure \
--disable-examples --disable-doc \
--disable-shared --enable-static
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
CFLAGS="-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL" \
./configure \
--disable-examples --disable-doc \
--disable-shared --enable-static
# elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
# CFLAGS="-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL" \
# ./configure \
# --disable-examples --disable-doc \
# --disable-shared --enable-static
# elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
# CFLAGS="-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL" \
# ./configure \
# --disable-examples --disable-doc \
# --disable-shared --enable-static
fi
# Got to remove the -j, as Arch's makepkg uses the user configured one, and that
# should not be overidden.
make