From 6824a60e7df3cdf81df90dfea9436e34455184e7 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Fri, 7 Jul 2023 23:55:01 -0700 Subject: https://wiki.archlinux.org/title/Makepkg#Building_optimized_binaries --- etc/makepkg.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/makepkg.conf') 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 -- cgit v1.2.3-70-g09d2