static_rnnoise.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env bash
  2. # No need for these with submodule
  3. # rm -rf rnnoise || true
  4. # git clone https://github.com/xiph/rnnoise.git
  5. cd rnnoise/
  6. ./autogen.sh
  7. mv ../ltmain.sh ./ && ./autogen.sh # Dang, what with this thing
  8. if [ "$(uname)" == "Darwin" ]; then
  9. CFLAGS="-fvisibility=hidden -fPIC " \
  10. ./configure \
  11. --disable-examples --disable-doc \
  12. --disable-shared --enable-static
  13. elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
  14. CFLAGS="-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL" \
  15. ./configure \
  16. --disable-examples --disable-doc \
  17. --disable-shared --enable-static
  18. # elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
  19. # CFLAGS="-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL" \
  20. # ./configure \
  21. # --disable-examples --disable-doc \
  22. # --disable-shared --enable-static
  23. # elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
  24. # CFLAGS="-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL" \
  25. # ./configure \
  26. # --disable-examples --disable-doc \
  27. # --disable-shared --enable-static
  28. fi
  29. # Got to remove the -j, as Arch's makepkg uses the user configured one, and that
  30. # should not be overidden.
  31. make