summaryrefslogtreecommitdiff
path: root/etc/makepkg.conf
diff options
context:
space:
mode:
Diffstat (limited to 'etc/makepkg.conf')
-rw-r--r--etc/makepkg.conf15
1 files changed, 12 insertions, 3 deletions
diff --git a/etc/makepkg.conf b/etc/makepkg.conf
index 112058ce..541847f0 100644
--- a/etc/makepkg.conf
+++ b/etc/makepkg.conf
@@ -42,7 +42,11 @@ CHOST="aarch64-unknown-linux-gnu"
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CPPFLAGS=""
-CFLAGS="-march=native -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions \
+# https://wiki.archlinux.org/title/Distcc#For_use_with_makepkg suggest "The
+# -march=native flag cannot be used in the CFLAGS and CXXFLAGS variables,
+# otherwise distccd will not distribute work to other machines." I want to use
+# distcc to let xyzinsp help compile, so I do not use -march=native on pp
+CFLAGS="-march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions \
-Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
-fstack-clash-protection \
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
@@ -69,11 +73,16 @@ DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
#-- check: Run the check() function if present in the PKGBUILD
#-- sign: Generate PGP signature file
#
-BUILDENV=(!distcc color !ccache check !sign)
+BUILDENV=(distcc color !ccache check !sign)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
-#DISTCC_HOSTS=""
+# I choose to use default --jobs on insp distccd-armv8, it is max insp threads
+# 4 + 2 = 6, I choose to use that here also.
+# https://wiki.archlinux.org/title/Distcc#For_use_with_makepkg suggest this
+# number to be insp's max number of threads, but I would like to use a higher
+# number to encourage pp distcc to use insp
+DISTCC_HOSTS="10.0.0.1:49710/6"
#
#-- Specify a directory for package building.
#BUILDDIR=/tmp/makepkg