[R-SIG-Mac] build R for macOS with binary compatibility with CRAN
@|mon@urb@nek @end|ng |rom R-project@org
Fri Jan 10 03:52:06 CET 2020
when you build R it requires the compiler runtime libraries from /usr/local. We don't want to require users to install compilers just to run R, so we supply copies of those runtime libraries in the lib directory.
You can replicate the way CRAN R is built using the CRAN build scripts in https://svn.r-project.org/R-dev-web/trunk/QA/Simon/R-build
There is a lot going on and there are many special cases for all the compiler generations we were using over the years, but I think the main part to look at for what you refer to is
> On Jan 9, 2020, at 5:38 PM, Jonathon Love <jon using thon.cc> wrote:
> i've successfully built R for macOS, and it all works well, however i'm wanting to achieve compatibility with the prebuilt .tgz CRAN R packages.
> the compatibility issue i've been having is that the R produced lacks the Resources/lib/libc++.1.dylib. the prebuilt CRAN R packages link to this, and can't find it at runtime.
> i'm wondering where this file (and a few other files in Resources/lib) that ship with the official CRAN R binary come from - because i don't think they're from the build process of R.
> it looks like the official binary is subject to a few additional build steps (copying binaries in, etc.)?
> with thanks
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
More information about the R-SIG-Mac