From 5571631975792bc6af8c6d47f9558dc001fcfbaa Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Tue, 29 Sep 2020 13:04:05 +0100 Subject: Fixes OSX build on Travis-CI Fixes #160 --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 246cf6f..92e55b9 100644 --- a/Makefile +++ b/Makefile @@ -111,7 +111,7 @@ else endif ifeq ($(CPP), clang++) - GCC_FLAGS=-std=c++11 -isystem$(OPENBLAS_INCLUDE_PATH) + GCC_FLAGS=-std=c++11 -isystem$(OPENBLAS_INCLUDE_PATH) ifdef GUIX CPPFLAGS += -I$(GUIX)/include/c++ -I$(GUIX)/include/c++/x86_64-unknown-linux-gnu endif @@ -158,6 +158,11 @@ static: CPPFLAGS += -static LIBS += -lgsl -lz ifdef WITH_OPENBLAS LIBS += -lopenblas + ifeq ($(SYS), OSX) + ifdef WITH_OPENBLAS + LIBS += -Wl,-L/usr/local/opt/openblas/lib + endif + endif else LIBS += -latlas -lcblas -llapack -lblas endif -- cgit v1.2.3