@Markospox you can set all CFLAGS you want, but probably the easiest you can do is to use tuning options already present in package. I personally use:
_microarchitecture=19 use_numa=n use_tracers=n use_ns=y _localmodcfg=y makepkg
Set your microarchitecture to native (22) or exactly for your CPU (execute this to know what you have: gcc -c -Q -march=native --help=target | grep march | head -1 | awk '{print $2}'). All is documented in PKGBUILD and choose-gcc-optimization.sh
In flags posted in Phoronix, compilation is for generic CPUs (mtune=generic), so you will gain a bit speed tunning microarchitecture. Also if you want a specific package, install modprobed-db (see archlinux wiki how to use) and that way you only build needed modules for your system. If not, don't use _localmodcfg
Pinned Comments
figue commented on 2018-12-15 22:40 (UTC) (edited on 2021-02-23 18:07 (UTC) by figue)
Please, check new release. You have now several variables to enable/disable features.
References:
Personally I'm running now xanmod kernel compiled with this:
Also, you can now put a file in your local repo to build this package with a custom config. You have to call this file myconfig.
Reference: