diff --git a/Makefile b/Makefile index f887ed67e..b946aa4bc 100644 --- a/Makefile +++ b/Makefile @@ -157,8 +157,8 @@ ggml-mpi.o: ggml-mpi.c ggml-mpi.h 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