From 698f7b5d6316a1f8453b3b32fd0d637d24952ffd Mon Sep 17 00:00:00 2001 From: bhubbb <79117352+bhubbb@users.noreply.github.com> Date: Sat, 8 Apr 2023 02:11:58 +1000 Subject: [PATCH] make : add libllama.so target for llama-cpp-python (#797) I was able to get llama-cpp-python working but only when I build libllama.so with make. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index cb14ffdbc..96c19deb6 100644 --- a/Makefile +++ b/Makefile @@ -166,6 +166,8 @@ perplexity: examples/perplexity/perplexity.cpp ggml.o llama.o common.o embedding: examples/embedding/embedding.cpp ggml.o llama.o common.o $(CXX) $(CXXFLAGS) examples/embedding/embedding.cpp ggml.o llama.o common.o -o embedding $(LDFLAGS) +libllama.so: llama.o ggml.o + $(CXX) $(CXXFLAGS) -shared -fPIC -o libllama.so llama.o ggml.o $(LDFLAGS) # # Tests #