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+=(