Here are my /etc/makepkg.conf Optimizations
Makepkg.conf is used whenever you build a package from the Aur or any other source. (
makepkg -si)
1) Set
-march and
-mtune to
native to optimize packages to your CPU architecture.
Do not fiddle with this if you are building packages for someone else who has different CPU
Code:
CFLAGS="-march=native -mtune=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4"
CXXFLAGS="-march=native
...