diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-12 18:22:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-15 19:15:08 +0300 |
commit | 2078835df4a5fc8d6fea3751a0a53ec366417417 (patch) | |
tree | 56930552d03baaf76e354a79240497db1faabb6c | |
parent | 372a62149f310f42ebb72d79599e5aeaac8df197 (diff) | |
download | hercules-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-x | build.sh | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -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 |