diff options
-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 |