From 8c9fb8dd5ac771f3a3f36a5df328f5b6dadfea81 Mon Sep 17 00:00:00 2001 From: stepan Date: Thu, 8 Apr 2021 10:48:54 +0200 Subject: [PATCH] Add -dynamiclib to Makeconf.llvm on Darwin --- com.oracle.truffle.r.native/run/fastr_etc/Darwin/Makeconf.llvm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.oracle.truffle.r.native/run/fastr_etc/Darwin/Makeconf.llvm b/com.oracle.truffle.r.native/run/fastr_etc/Darwin/Makeconf.llvm index e9548e0d61..fd002c41ac 100644 --- a/com.oracle.truffle.r.native/run/fastr_etc/Darwin/Makeconf.llvm +++ b/com.oracle.truffle.r.native/run/fastr_etc/Darwin/Makeconf.llvm @@ -110,7 +110,7 @@ JAR = $(JAVA_HOME)/bin/jar ## JAVA_HOME might be used in the next three. ## They are for packages 'JavaGD' and 'rJava' LAPACK_LIBS = -L"$(R_HOME)/lib$(R_ARCH)" -lRlapack -LDFLAGS = "-Wl,-rpath,$(R_HOME)/lib/,-rpath,$(R_HOME)/../llvm/native/lib,-undefined,dynamic_lookup" -L"$(R_HOME)/lib" -L"$(R_HOME)/../llvm/native/lib" -lf2c $(PKG_LDFLAGS_OVERRIDE) +LDFLAGS = "-Wl,-rpath,$(R_HOME)/lib/,-rpath,$(R_HOME)/../llvm/native/lib,-undefined,dynamic_lookup" -L"$(R_HOME)/lib" -L"$(R_HOME)/../llvm/native/lib" -dynamiclib -lf2c $(PKG_LDFLAGS_OVERRIDE) ## we only need this is if it is external, as otherwise link to R LIBM = -lm LIBR0 = -lR