From 2078835df4a5fc8d6fea3751a0a53ec366417417 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 12 Nov 2014 18:22:33 +0300 Subject: Into build scripts add support for build static 32 and 64 versions. --- build.sh | 20 +++++++++++++++++--- 1 file 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 -- cgit v1.2.3-70-g09d2