summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-12 18:22:33 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-15 19:15:08 +0300
commit2078835df4a5fc8d6fea3751a0a53ec366417417 (patch)
tree56930552d03baaf76e354a79240497db1faabb6c
parent372a62149f310f42ebb72d79599e5aeaac8df197 (diff)
downloadhercules-2078835df4a5fc8d6fea3751a0a53ec366417417.tar.gz
hercules-2078835df4a5fc8d6fea3751a0a53ec366417417.tar.bz2
hercules-2078835df4a5fc8d6fea3751a0a53ec366417417.tar.xz
hercules-2078835df4a5fc8d6fea3751a0a53ec366417417.zip
Into build scripts add support for build static 32 and 64 versions.
-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