summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorpancho horrillo2021-11-30 13:36:38 +0100
committerpancho horrillo2021-11-30 13:36:38 +0100
commit98453b69b255f2c4a5c599441ef696499d2a1ac1 (patch)
treec17408657fc08d31048806be560a68b0677c36a7
parentb2c3de6638ba7abe98927c13b26f28eae0c461f1 (diff)
downloadaur-98453b69b255f2c4a5c599441ef696499d2a1ac1.tar.gz
Adjust LTO settings to match upstream
Cherry-picked from emacs-git¹. [1]: https://aur.archlinux.org/cgit/aur.git/commit/?h=emacs-git&id=19b0bb93c65e8b60cffcee3de84070c1e2897263
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD15
2 files changed, 3 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 38a418ebe81d..901357c4a9f0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = emacs28-git
pkgdesc = GNU Emacs. emacs-28 release branch.
pkgver = 28.0.60.152178
- pkgrel = 1
+ pkgrel = 2
url = http://www.gnu.org/software/emacs/
install = emacs28-git.install
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 2e4131c3cc7e..ff65cb1bafbf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -35,8 +35,7 @@
CHECK= # Run tests. May fail, this is developement after all.
CLANG= # Use clang.
GOLD= # Use the gold linker.
-LTO="YES" # Enable link-time optimization. Read emacs's INSTALL before
- # attempting to use it with clang.
+LTO= # Enable link-time optimization. Still experimental.
JIT="YES" # Enable native just-in-time compilation. libgccjit is in AUR.
# This compiles only performance critical elisp files.
# To compile all elisp on demand, set
@@ -72,7 +71,7 @@ else
pkgname="emacs28-git"
fi
pkgver=28.0.60.152178
-pkgrel=1
+pkgrel=2
pkgdesc="GNU Emacs. emacs-28 release branch."
arch=('x86_64')
url="http://www.gnu.org/software/emacs/"
@@ -116,16 +115,6 @@ if [[ $CLANG == "YES" ]]; then
makedepends+=( 'clang' 'lld' 'llvm') ;
fi
-if [[ $LTO == "YES" ]]; then
- if [[ $CLANG != "YES" ]]; then
- CFLAGS+=" -flto -fuse-linker-plugin"
- CXXFLAGS+=" -flto -fuse-linker-plugin"
-else
- CFLAGS+=" -flto"
- CXXFLAGS+=" -flto"
- fi
-fi
-
if [[ $JIT == "YES" ]]; then
if [[ $CLI == "YES" ]]; then
depends_nox+=( 'libgccjit' );