summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-30 16:58:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-30 16:58:12 +0300
commit71b07786ac49c28e907fe3836216fea7346a4f02 (patch)
tree6a592c19559075f3f409d8e10945461c7e71b4bf /build.sh
parent8cf325640e316aff125deeff3d2880bb342d00c9 (diff)
downloadevol-hercules-71b07786ac49c28e907fe3836216fea7346a4f02.tar.gz
evol-hercules-71b07786ac49c28e907fe3836216fea7346a4f02.tar.bz2
evol-hercules-71b07786ac49c28e907fe3836216fea7346a4f02.tar.xz
evol-hercules-71b07786ac49c28e907fe3836216fea7346a4f02.zip
Add shared file with server code for change constants.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 1affb18..b5920c0 100755
--- a/build.sh
+++ b/build.sh
@@ -6,6 +6,8 @@ if [[ -z "${CMD}" ]]; then
export CMD="default"
fi
+source tools/vars.sh
+
mkdir build
# this need for some outdated os
mkdir m4
@@ -13,12 +15,12 @@ autoreconf -i
cd build
if [[ "${CMD}" == "default" ]]; then
export CC=gcc
- ../configure --enable-sanitize --enable-lto
+ ../configure --enable-sanitize --enable-lto CPPFLAGS="${VARS}"
elif [[ "${CMD}" == "old" ]]; then
- ../configure
+ ../configure CPPFLAGS="${VARS}"
elif [[ "${CMD}" == "gprof" ]]; then
export CC=gcc
- ../configure --enable-gprof
+ ../configure --enable-gprof CPPFLAGS="${VARS}"
fi
make -j3
export RET=$?