Fix #2221, use pkg-config

This commit is contained in:
Wu Zhenyu 2023-07-14 22:24:36 +08:00
parent 697966680b
commit 2a1add9374
No known key found for this signature in database
GPG key ID: 0E07E1F8C0EC10AD

View file

@ -157,8 +157,8 @@ ggml-mpi.o: ggml-mpi.c ggml-mpi.h
endif # LLAMA_MPI endif # LLAMA_MPI
ifdef LLAMA_OPENBLAS ifdef LLAMA_OPENBLAS
CFLAGS += -DGGML_USE_OPENBLAS -I/usr/local/include/openblas -I/usr/include/openblas CFLAGS += -DGGML_USE_OPENBLAS $(shell pkg-config --cflags openblas)
LDFLAGS += -lopenblas LDFLAGS += $(shell pkg-config --libs openblas)
endif # LLAMA_OPENBLAS endif # LLAMA_OPENBLAS
ifdef LLAMA_BLIS ifdef LLAMA_BLIS