Skip to content
Prev 291105 / 398498 Next

Building R on Solaris (OpenIndiana) with gcc 4.6.2 for amd64 target - relocation problems solved

This was really a topic for R-devel rather than R-help.

It depends on the fine details of your build of gcc.  R's configure sets 
SHLIB_LDFLAGS=-shared for the GNU linker and SHLIB_LDFLAGS=-G for the 
Solaris linker.  That used to work on Opteron and still does on Sparc. 
If the setting is wrong, that is the only variable you need to set for 
configuration to change all the SHLIB_*FLAGS.

It seems that the latest OpenCSW compilers need -shared, but there are 
still relocation problems on amd64 as not all the libraries 
(specifically libjbig) are properly PIC.
On 07/04/2012 11:42, Michael Figiel wrote: