Alright, I took a look and this is Arch's makepkg.conf (installed in July 2025):
cat /etc/makepkg.conf | grep CFLAGS
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" DEBUG_CFLAGS="-g" DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
This is Cachy makepkg.conf
CFLAGS="-march=native -O3 -pipe -fno-plt -fexceptions \ CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS" DEBUG_CFLAGS="-g" DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
Be reminded, that the two devices differ from architecture perspective.
Pinned Comments
Gigas002 commented on 2024-05-29 15:08 (UTC)
PKGBUILDtweaksIf you want to build with
clang, add this part tocmakeflags:If you want to use bundled
fuzzylite:If you want to use
innoextract(system-wide installation won't work since vcmi has a temporary? fork ofinnoextractfor now):