On Tue, Oct 9, 2012 at 11:11 PM, Jeremy Evans <jer...@openbsd.org> wrote: > This diff builds the R libraries (and also executables, but that is not > important) with RPATH in the ELF header. The libraries are installed in > /usr/local/lib/R/lib, which isn't in the default ld.so path. libR links > to libRblas in that directory. The result of this is that if anything > wants to link to libR, it must modify the ld.so search path. You can't > just have the library that wants to link to libR use RPATH, since libR > links to libRblas. > > By setting RPATH for libR and the other R shared libraries, you can then > link other libraries to them using RPATH without modifying the ld.so > search path. This is especially helpful if the library you want to link > to libR is a plugin for another program which is loaded via dlopen. > > Tested on i386, also compiles on amd64. > > Thoughts/OKs?
Makes sense to me. ok dcoppa@