]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
make : use pkg-config for OpenBLAS (#2222)
authorwzy <redacted>
Fri, 14 Jul 2023 19:05:08 +0000 (03:05 +0800)
committerGitHub <redacted>
Fri, 14 Jul 2023 19:05:08 +0000 (22:05 +0300)
Makefile

index 0a4f0640dd3d4b8d2a166df76fea6dc73ebd965d..6c74e134664a697fc17a7f978d7d504cca3da82a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -154,8 +154,8 @@ ifdef LLAMA_MPI
 endif # LLAMA_MPI
 
 ifdef LLAMA_OPENBLAS
-       CFLAGS  += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas -I/usr/include/openblas
-       LDFLAGS += -lopenblas
+       CFLAGS  += -DGGML_USE_OPENBLAS $(shell pkg-config --cflags openblas)
+       LDFLAGS += $(shell pkg-config --libs openblas)
 endif # LLAMA_OPENBLAS
 
 ifdef LLAMA_BLIS