feat: trying more optimizations
This commit is contained in:
parent
24280e3891
commit
67161335ba
4 changed files with 10 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Add table
Reference in a new issue