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
|
||||
}
|
||||
|
||||
# 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)
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue