dns-bench/build_dig.sh

42 lines
582 B
Bash
Raw Permalink Normal View History

2024-12-20 17:52:34 +04:00
#!/bin/bash
source .build.sh
2024-12-20 17:52:34 +04:00
echo
echo '==> Checking deps'
which git
which autoreconf
which make
which gcc || which clang
echo
echo '==> Cloning repo'
clone https://gitlab.isc.org/isc-projects/bind9.git bind9
2024-12-20 17:52:34 +04:00
cd bind9
trap 'cd ..' EXIT
2024-12-20 19:25:20 +04:00
set_cflags
use_lto
2024-12-20 17:52:34 +04:00
echo
echo '==> autoreconf -fi'
autoreconf -fi
echo
echo '==> ./configure (check deps, generate config)'
./configure \
--with-jemalloc \
--disable-doh \
--disable-geoip \
2024-12-20 22:08:56 +04:00
--without-libxml2 \
--without-json-c \
--without-libsystemd \
--without-zlib
2024-12-20 17:52:34 +04:00
echo
echo '==> make'
make_maxthreads
2024-12-20 17:52:34 +04:00
echo
echo '==> Done'