summaryrefslogtreecommitdiff
path: root/etc/makepkg.conf
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-07-07 23:55:01 -0700
committerXiao Pan <gky44px1999@gmail.com>2023-07-07 23:55:01 -0700
commit6824a60e7df3cdf81df90dfea9436e34455184e7 (patch)
tree3bbe823588087d2ec57d13e64204b04dfec06ae2 /etc/makepkg.conf
parent6bbf875775e291320df0846473eb6d54f52a6679 (diff)
https://wiki.archlinux.org/title/Makepkg#Building_optimized_binaries
Diffstat (limited to 'etc/makepkg.conf')
-rw-r--r--etc/makepkg.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/makepkg.conf b/etc/makepkg.conf
index 94641d44..7c54c41b 100644
--- a/etc/makepkg.conf
+++ b/etc/makepkg.conf
@@ -40,13 +40,13 @@ 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=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions \
+CFLAGS="-march=native -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions \
-Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
-fstack-clash-protection"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
LTOFLAGS=""
-#RUSTFLAGS="-C opt-level=2"
+RUSTFLAGS="-C opt-level=2 -C target-cpu=native"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#-- Debugging flags