diff --git a/Makefile b/Makefile index 3ec2213..c381203 100644 --- a/Makefile +++ b/Makefile @@ -67,6 +67,15 @@ WHITE := $(shell tput -Txterm setaf 7) CYAN := $(shell tput -Txterm setaf 6) RESET := $(shell tput -Txterm sgr0) +ifndef UNAME_S +UNAME_S := $(shell uname -s) +endif + +# workaround for rwkv.cpp +ifeq ($(UNAME_S),Darwin) + CGO_LDFLAGS += -lcblas -framework Accelerate +endif + ifeq ($(BUILD_TYPE),openblas) CGO_LDFLAGS+=-lopenblas endif