According to Wiki the way to modify runtime behaviour of makepkg is to put key-value parameters in a file /etc/makepkg.conf.d/
or in the file $HOME/.makepkg.conf
or$HOME/.config/pacman/makepkg.conf.d
For this I have the following queries
-
If I were to put in a modified
/etc/makepkg.conf.d/makepkg.conf
file, different values for CFLAGS, CARCH and other flags than the file/etc/makepkg.conf
, then will variables with the changes in/etc/makepkg.conf.d/makepkg.conf
overwrite whatever values are provided in/etc/makepkg.conf
? -
According to the manual page of makepkg.conf the path
$HOME/.config/pacman/makepkg.conf.d
takes priority over$HOME/.makepkg.conf
. So for a desktop system what would be preferred? Putting the changed values inside$HOME/.config/pacman/makepkg.conf.d
or/etc/makepkg.conf.d/makepkg.conf
? -
If I were to set the value of CFLAGS as ‘’-march=x86-64-v4 …" or “-march=x86-64-v3 …” then will it work for all the packages installed from Arch repositories as well as AUR using pacman/yay?