2024-12-20 10:15:17 +04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-12-20 18:15:57 +04:00
|
|
|
source .build.sh
|
2024-12-20 10:15:17 +04:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo '==> Checking deps'
|
|
|
|
which git
|
|
|
|
which cargo
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo '==> Cloning repo'
|
2024-12-20 18:15:57 +04:00
|
|
|
clone https://github.com/hickory-dns/hickory-dns.git hickory-dns
|
|
|
|
|
|
|
|
cd hickory-dns
|
|
|
|
trap 'cd ..' EXIT
|
2024-12-20 19:25:20 +04:00
|
|
|
set_cflags
|
2024-12-20 10:15:17 +04:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo '==> Building resolve'
|
|
|
|
cargo build \
|
|
|
|
--release \
|
|
|
|
--bin resolve \
|
|
|
|
--features dnssec-ring \
|
|
|
|
--config 'panic="abort"' \
|
|
|
|
--config 'lto="fat"'
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo '==> Done'
|