summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-12 18:22:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-05 02:02:38 +0300
commit037c0a8882aa500ad43aafe7256abb0ab138ca87 (patch)
tree47f975fda430ed2eaa7bc33cd79e51ec1bd0597c /build.sh
parentd4e56080e1ee76917f4b4a6386184b28f006b39c (diff)
downloadhercules-037c0a8882aa500ad43aafe7256abb0ab138ca87.tar.gz
hercules-037c0a8882aa500ad43aafe7256abb0ab138ca87.tar.bz2
hercules-037c0a8882aa500ad43aafe7256abb0ab138ca87.tar.xz
hercules-037c0a8882aa500ad43aafe7256abb0ab138ca87.zip
Into build scripts add support for build static 32 and 64 versions.
Diffstat (limited to 'build.sh')
-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