Fix #2221, use pkg-config
This commit is contained in:
parent
697966680b
commit
2a1add9374
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue