sci-misc/llama-cpp: add openssl use flag

Addresses automagic dependency on dev-libs/openssl

Signed-off-by: Craig Andrews <candrews@gentoo.org>
This commit is contained in:
Craig Andrews
2026-03-30 15:16:53 -04:00
parent eb7ff3dc7b
commit 98a0200bd2
2 changed files with 4 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ SLOT="0"
CPU_FLAGS_X86=( avx avx2 f16c )
# wwma USE explained here: https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md#hip
IUSE="curl openblas +openmp blis rocm cuda opencl vulkan flexiblas wmma examples"
IUSE="curl openblas +openmp blis rocm cuda opencl openssl vulkan flexiblas wmma examples"
REQUIRED_USE="
?? (
@@ -63,6 +63,7 @@ CDEPEND="
)
)
cuda? ( dev-util/nvidia-cuda-toolkit:= )
openssl? ( dev-libs/openssl:= )
"
DEPEND="${CDEPEND}
opencl? ( dev-util/opencl-headers )
@@ -105,6 +106,7 @@ src_configure() {
-DGGML_NATIVE=0 # don't set march
-DGGML_RPC=ON
-DLLAMA_CURL=$(usex curl)
-DLLAMA_OPENSSL=$(usex openssl)
-DBUILD_NUMBER="1"
-DGENTOO_REMOVE_CMAKE_BLAS_HACK=ON
-DGGML_CUDA=$(usex cuda)

View File

@@ -12,6 +12,7 @@
<flag name="wmma">Use rocWMMA to enhance flash attention performance</flag>
<flag name="openblas">Build an OpenBLAS backend</flag>
<flag name="opencl">Build an OpenCL backend, so far only works on Adreno and Intel GPUs</flag>
<flag name="openssl">Use openssl to support HTTPS</flag>
</use>
<maintainer type="person">
<email>zl29ah@gmail.com</email>