summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh20
1 files changed, 17 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 95d2eda2d..21e8540d2 100755
--- a/build.sh
+++ b/build.sh
@@ -1,6 +1,20 @@
#!/bin/bash
+CMD="$1"
+
+if [[ -z "${CMD}" ]]; then
+ export CMD="default"
+fi
+
autoreconf
-./configure --enable-sanitize --disable-lto --enable-packetver=20150000 --enable-debug=gdb
-make -j3
-make install
+if [[ "${CMD}" == "defaule" ]]; then
+ ./configure --enable-sanitize --disable-lto --enable-packetver=20150000 --enable-debug=gdb
+ make -j3
+ make install
+elif [[ "${CMD}" == "static" ]]; then
+ ./configure --disable-64bit --enable-static --disable-lto --enable-packetver=20150000 --enable-debug=gdb
+ make -j3
+elif [[ "${CMD}" == "static64" ]]; then
+ ./configure --enable-static --disable-lto --enable-packetver=20150000 --enable-debug=gdb
+ make -j3
+fi