Skip to content

Commit ada2a32

Browse files
committed
Redistribute gfortran runtime libraries on Linux
1 parent bbba747 commit ada2a32

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

com.oracle.truffle.r.native/gnur/Makefile.libs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ $(error no platform.mk available)
3131
endif
3232
endif
3333

34+
OSNAME := $(shell uname)
35+
3436
# blas and lapack implementations can be overridden using the following environment variables
3537
BLAS_LAPACK_DIR ?= $(GNUR_HOME_BINARY)/lib
3638
BLAS_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

0 commit comments

Comments
 (0)