summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-01 22:53:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-05 17:47:13 +0300
commit7ac26825c2a315496bc34f8564d03e2a6070552e (patch)
treef3cb5ffdafc64541df340b936322c0aec74327e9
parent7e1f8b21952dda3404339bfcd3d329d5845b4396 (diff)
downloadhercules-7ac26825c2a315496bc34f8564d03e2a6070552e.tar.gz
hercules-7ac26825c2a315496bc34f8564d03e2a6070552e.tar.bz2
hercules-7ac26825c2a315496bc34f8564d03e2a6070552e.tar.xz
hercules-7ac26825c2a315496bc34f8564d03e2a6070552e.zip
use gcc 5 for build script.
-rwxr-xr-xbuild.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/build.sh b/build.sh
index 681aded4f..f4c949b72 100755
--- a/build.sh
+++ b/build.sh
@@ -18,32 +18,33 @@ export COMMON="--disable-lto --enable-packetver=20150000 --enable-debug=gdb${SQL
autoreconf
if [[ "${CMD}" == "default" || "${CMD}" == "all" ]]; then
- ./configure --enable-sanitize ${COMMON}
- make -j3
+ export CC=gcc-5
+ ./configure --enable-manager=no --enable-sanitize=full ${COMMON}
+ make -j9
make install
cd src/evol
./build.sh
elif [[ "${CMD}" == "old" ]]; then
./configure ${COMMON}
- make -j3
+ make -j9
make install
cd src/evol
./build.sh old
elif [[ "${CMD}" == "valgrind" ]]; then
./configure --enable-manager=no ${COMMON}
- make -j3
+ make -j9
make install
cd src/evol
./build.sh old
elif [[ "${CMD}" == "server" ]]; then
./configure --enable-sanitize ${COMMON}
- make -j3
+ make -j9
make install
elif [[ "${CMD}" == "static" ]]; then
./configure LIBS="-lmysqlclient -lssl -lcrypto -pthread -lm -lz" --disable-64bit --enable-static ${COMMON}
- make -j3
+ make -j9
elif [[ "${CMD}" == "static64" ]]; then
./configure --enable-static ${COMMON}
- make -j3
+ make -j9
fi
exit $?