From 870ea9c5ebcb52bed893828942ab0fd71cbe44e4 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Thu, 27 Jun 2024 15:41:57 +0200 Subject: [PATCH] Disable shared libs by default in llama.cpp Signed-off-by: Ettore Di Giacinto --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 88949acd2768..3af7041a8309 100644 --- a/Makefile +++ b/Makefile @@ -691,12 +691,12 @@ ifdef BUILD_GRPC_FOR_BACKEND_LLAMA _PROTOBUF_PROTOC=${INSTALLED_PACKAGES}/bin/proto \ _GRPC_CPP_PLUGIN_EXECUTABLE=${INSTALLED_PACKAGES}/bin/grpc_cpp_plugin \ PATH="${INSTALLED_PACKAGES}/bin:${PATH}" \ - CMAKE_ARGS="${CMAKE_ARGS} ${ADDED_CMAKE_ARGS}" \ + CMAKE_ARGS="${CMAKE_ARGS} ${ADDED_CMAKE_ARGS} -DBUILD_SHARED_LIBS=OFF" \ LLAMA_VERSION=$(CPPLLAMA_VERSION) \ $(MAKE) -C backend/cpp/${VARIANT} grpc-server else echo "BUILD_GRPC_FOR_BACKEND_LLAMA is not defined." - LLAMA_VERSION=$(CPPLLAMA_VERSION) $(MAKE) -C backend/cpp/${VARIANT} grpc-server + CMAKE_ARGS="${CMAKE_ARGS} -DBUILD_SHARED_LIBS=OFF" LLAMA_VERSION=$(CPPLLAMA_VERSION) $(MAKE) -C backend/cpp/${VARIANT} grpc-server endif # This target is for manually building a variant with-auto detected flags