diff options
| author | Xiao Pan <gky44px1999@gmail.com> | 2023-07-08 00:02:17 -0700 | 
|---|---|---|
| committer | Xiao Pan <gky44px1999@gmail.com> | 2023-07-08 00:02:17 -0700 | 
| commit | a5407dc2ff1472bb1e7a06afe24fc50fda75001b (patch) | |
| tree | dd52611295ec382583897c88d48a8c7dfe2c4b57 | |
| parent | ec8d20225afc345bb756377348c862a4e12b8190 (diff) | |
https://wiki.archlinux.org/title/Makepkg#Building_optimized_binaries
| -rw-r--r-- | etc/makepkg.conf | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/etc/makepkg.conf b/etc/makepkg.conf index f270d8ed..ebd64ce0 100644 --- a/etc/makepkg.conf +++ b/etc/makepkg.conf @@ -38,13 +38,13 @@ CHOST="x86_64-pc-linux-gnu"  #-- Compiler and Linker Flags  #CPPFLAGS="" -CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ +CFLAGS="-march=native -mtune=generic -O2 -pipe -fno-plt -fexceptions \          -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \          -fstack-clash-protection -fcf-protection"  CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"  LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"  LTOFLAGS="-flto=auto" -#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 | 
