summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-editors/emacs/emacs-28.0.9999.ebuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/app-editors/emacs/emacs-28.0.9999.ebuild b/app-editors/emacs/emacs-28.0.9999.ebuild
index 682e0651a360..e3586a88f103 100644
--- a/app-editors/emacs/emacs-28.0.9999.ebuild
+++ b/app-editors/emacs/emacs-28.0.9999.ebuild
@@ -148,7 +148,7 @@ src_prepare() {
# gccjit doesn't play well with ccache #801580
# For now, work around the problem with an explicit LIBRARY_PATH
- has ccache ${FEATURES} \
+ has ccache ${FEATURES} && tc-is-gcc \
&& export LIBRARY_PATH=$("$(tc-getCC)" -print-search-dirs \
| sed -n '/^libraries:/{s:^[^/]*::;p}')
fi