Browse Source

Re add static rnnoise building script

Luciano Dato 7 years ago
parent
commit
286e3b61d5
1 changed files with 30 additions and 0 deletions
  1. 30 0
      static_rnnoise.sh

+ 30 - 0
static_rnnoise.sh

@@ -0,0 +1,30 @@
+#!/usr/bin/env bash
+
+rm -rf rnnoise || true
+git clone https://github.com/xiph/rnnoise.git
+cd rnnoise/
+./autogen.sh
+
+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
+
+make -j2