diff --git a/zcutil/build.sh b/zcutil/build.sh index 6f79157f7..983ee8c93 100755 --- a/zcutil/build.sh +++ b/zcutil/build.sh @@ -24,9 +24,11 @@ cd "$(dirname "$(readlink -f "$0")")/.." # If --enable-lcov is the first argument, enable lcov coverage support: LCOV_ARG='' +HARDENING_ARG='--enable-hardening' if [ "x${1:-}" = 'x--enable-lcov' ] then LCOV_ARG='--enable-lcov' + HARDENING_ARG='--disable-hardening' shift fi @@ -35,5 +37,5 @@ PREFIX="$(pwd)/depends/x86_64-unknown-linux-gnu/" make "$@" -C ./depends/ V=1 NO_QT=1 ./autogen.sh -./configure --prefix="${PREFIX}" --with-gui=no --enable-hardening "$LCOV_ARG" CXXFLAGS='-Wno-deprecated-declarations -Wno-placement-new -Wno-terminate -Werror -O1 -g' +./configure --prefix="${PREFIX}" --with-gui=no "$HARDENING_ARG" "$LCOV_ARG" CXXFLAGS='-Wno-deprecated-declarations -Wno-placement-new -Wno-terminate -Werror -O1 -g' make "$@" V=1