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 fi
} }
# optimizations
set_cflags () {
export \
CFLAGS="-O3" CPPFLAGS="-O3" LDFLAGS="-Wl,-O3 -Wl,-S" \
RUSTFLAGS="-C target-cpu=native"
}
# make -j12 # make -j12
make_maxthreads() { make_maxthreads() {
[ -v JOBS ] || JOBS=$(nproc || echo 4) [ -v JOBS ] || JOBS=$(nproc || echo 4)

View file

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

View file

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

View file

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