static_rnnoise.sh 959 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env bash
  2. rm -rf rnnoise || true
  3. git clone https://github.com/xiph/rnnoise.git
  4. cd rnnoise/
  5. ./autogen.sh
  6. if [ "$(uname)" == "Darwin" ]; then
  7. CFLAGS="-fvisibility=hidden -fPIC " \
  8. ./configure \
  9. --disable-examples --disable-doc \
  10. --disable-shared --enable-static
  11. elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
  12. CFLAGS="-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL" \
  13. ./configure \
  14. --disable-examples --disable-doc \
  15. --disable-shared --enable-static
  16. # elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
  17. # CFLAGS="-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL" \
  18. # ./configure \
  19. # --disable-examples --disable-doc \
  20. # --disable-shared --enable-static
  21. # elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
  22. # CFLAGS="-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL" \
  23. # ./configure \
  24. # --disable-examples --disable-doc \
  25. # --disable-shared --enable-static
  26. fi
  27. make -j2