Jonathon, 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 https://svn.r-project.org/R-dev-web/trunk/QA/Simon/R-build/fixpathR Cheers, Simon > On Jan 9, 2020, at 5:38 PM, Jonathon Love <j...@thon.cc> wrote: > > hi, > > 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 > > jonathon > > _______________________________________________ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > _______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac