commit: 2b2449e6855169aa63f23641f5fda1da0a5f4b01
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Sat Feb 21 20:12:09 2026 +0000
Commit: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
CommitDate: Thu Mar 5 22:23:47 2026 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2b2449e6
sci-ml/ollama: 9999 enable LTO for ggml if lto is enabled via FLAGS
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
sci-ml/ollama/ollama-9999.ebuild | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sci-ml/ollama/ollama-9999.ebuild b/sci-ml/ollama/ollama-9999.ebuild
index e313bce354..2796034559 100644
--- a/sci-ml/ollama/ollama-9999.ebuild
+++ b/sci-ml/ollama/ollama-9999.ebuild
@@ -279,6 +279,12 @@ src_configure() {
"$(cmake_use_find_package vulkan Vulkan)"
)
+ if tc-is-lto ; then
+ mycmakeargs+=(
+ -DGGML_LTO="yes"
+ )
+ fi
+
if use blas; then
if use flexiblas ; then
mycmakeargs+=(