feat: trying more optimizations

This commit is contained in:
DarkCat09 2024-12-20 19:25:20 +04:00
parent 24280e3891
commit 67161335ba
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82
4 changed files with 10 additions and 2 deletions

View file

@ -17,6 +17,13 @@ clone () {
fi
}
# optimizations
set_cflags () {
export \
CFLAGS="-O3" CPPFLAGS="-O3" LDFLAGS="-Wl,-O3 -Wl,-S" \
RUSTFLAGS="-C target-cpu=native"
}
# make -j12
make_maxthreads() {
[ -v JOBS ] || JOBS=$(nproc || echo 4)

View file

@ -15,7 +15,7 @@ clone https://gitlab.isc.org/isc-projects/bind9.git bind9
cd bind9
trap 'cd ..' EXIT
export CFLAGS="-O3" CPPFLAGS="-O3"
set_cflags
echo
echo '==> autoreconf -fi'

View file

@ -16,7 +16,7 @@ clone https://github.com/NLnetLabs/ldns.git ldns
cd ldns
trap 'cd ..' EXIT
export CFLAGS="-O3"
set_cflags
echo
echo '==> libtoolize -ci'

View file

@ -13,6 +13,7 @@ clone https://github.com/hickory-dns/hickory-dns.git hickory-dns
cd hickory-dns
trap 'cd ..' EXIT
set_cflags
echo
echo '==> Building resolve'