static_rnnoise.sh 1.0 KB

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