File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
com.oracle.truffle.r.native/gnur Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ $(error no platform.mk available)
3131endif
3232endif
3333
34+ OSNAME := $(shell uname)
35+
3436# blas and lapack implementations can be overridden using the following environment variables
3537BLAS_LAPACK_DIR ?= $(GNUR_HOME_BINARY)/lib
3638BLAS_SOURCE ?= $(BLAS_LAPACK_DIR)/libRblas$(DYLIB_EXT)
@@ -47,7 +49,13 @@ LAPACK_TARGET := $(FASTR_LIB_DIR)/libRlapack$(DYLIB_EXT)
4749# to keep the Java side simpler, we (may) copy them to $(FASTR_LIB_DIR) unless
4850# they were found in the standard system locations
4951# Note: removed gfortran quadmath gcc_s for the time being
50- OTHER_LIB_TARGETS = pcre z
52+ ifeq ($(OSNAME), Linux)
53+ OTHER_LIB_TARGETS = pcre z gfortran quadmath gcc_s
54+ else ifeq ($(OSNAME), Darwin)
55+ OTHER_LIB_TARGETS = pcre z
56+ else
57+ $(error OS $(OSNAME) is not supported)
58+ endif
5159
5260.PHONY: all
5361
You can’t perform that action at this time.
0 commit comments