commit: 2de17e6b1fdc54e68be4f28dbead1a9f32502a02
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 7 13:18:42 2026 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 7 13:22:01 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2de17e6b
app-editors/emacs: More clang quirks
"test-flags -no-pie" fails with clang, use test-flags-CCLD instead.
Also adjust optimization level.
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
app-editors/emacs/emacs-18.59-r17.ebuild | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/app-editors/emacs/emacs-18.59-r17.ebuild
b/app-editors/emacs/emacs-18.59-r17.ebuild
index 0511e505f1f4..d18117929d15 100644
--- a/app-editors/emacs/emacs-18.59-r17.ebuild
+++ b/app-editors/emacs/emacs-18.59-r17.ebuild
@@ -90,8 +90,12 @@ src_configure() {
-Wno-return-type -Wno-return-mismatch -Wno-pointer-sign \
-Wno-parentheses -Wno-dangling-else -Wno-comment \
$(test-flags -Wno-deprecated-non-prototype)
- append-ldflags $(test-flags -no-pie) #639562
- replace-flags -O[3-9] -O2
+ append-ldflags $(test-flags-CCLD -no-pie) #639562
+ if tc-is-clang; then
+ replace-flags "-O[1-9]" -O0
+ else
+ replace-flags "-O[3-9]" -O2
+ fi
}
src_compile() {