diff options
author | Evangelos Foutras <evangelos@foutrelis.com> | 2022-03-07 15:41:17 +0200 |
---|---|---|
committer | Evangelos Foutras <evangelos@foutrelis.com> | 2022-03-07 15:41:17 +0200 |
commit | 74164e348b2c57dd98bfe4245540f6df67fb1c67 (patch) | |
tree | 2733d94a9c4f0cde686393cb917c3b65980196ba /makepkg-x86_64.conf | |
parent | a17c9c6a703901bff12779ab3b5bebde5194c617 (diff) | |
download | devtools-74164e348b2c57dd98bfe4245540f6df67fb1c67.tar.xz |
makepkg.conf: set LTOFLAGS="-flto=auto"
For use with pacman 6.0.1-4 which backports support for LTOFLAGS in
order to speed up builds that use gcc as the compiler. This is less
useful when clang is used, though a hack would be to specify in the
PKGBUILD `LTOFLAGS="-flto=thin"` (outside of any function).
Diffstat (limited to 'makepkg-x86_64.conf')
-rw-r--r-- | makepkg-x86_64.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/makepkg-x86_64.conf b/makepkg-x86_64.conf index 19d16f7..7725296 100644 --- a/makepkg-x86_64.conf +++ b/makepkg-x86_64.conf @@ -45,6 +45,7 @@ CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \ -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" #-- Make Flags: change this for DistCC/SMP systems #MAKEFLAGS="-j2" |