Skip to main content

Optimizing makepkg.conf

if you are using aur and see that compiling some software is low here is how to speed it up, and also optimize compiled a bit more for you system.

/etc/makepkg.conf

Replace in CFLAGS and CXXFLAGS to native

-march=x86-64 -mtune=generic to -march=native

Speed up build times

Find the line MAKEFLAGS and set it to MAKEFLAGS="-j$(nproc)"

Speed up compression of packages

Find the line COMPRESSZST and set it to COMPRESSZST=(zstd -1 -c -z -q -)