diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-12 18:22:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-05 02:02:38 +0300 |
commit | 037c0a8882aa500ad43aafe7256abb0ab138ca87 (patch) | |
tree | 47f975fda430ed2eaa7bc33cd79e51ec1bd0597c /build.sh | |
parent | d4e56080e1ee76917f4b4a6386184b28f006b39c (diff) | |
download | hercules-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-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 |