[R] need help with building R on Solaris without using shared FORTRAN libraries
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Oct 26 18:11:56 CEST 1999
> From: "Terry Westley" <twestley at buffalo.veridian.com>
> Date: Mon, 25 Oct 1999 14:01:33 -0400
> I need to build R (we're currently at R version 0.64.0) for
(However, R is currently at 0.65.1.)
> Solaris 2.5.1 on SunSPARC without using the libF77.so and
> libsunmath.so shared libraries. I'd like to use statically
> linked libraries instead.
>
> Nothing I have tried has worked as measured by executing
> the command "ldd R.binary" to see whether it references
> the shared libraries or not.
>
> This is what I've tried:
>
> 1) Modified config.site to uncomment the FPICFLAGS line
> and set the flag to the following variations:
>
> FPICFLAGS=
> FPICFLAGS=""
> FPICFLAGS=" "
>
> 2) Set FPICFLAGS as an environment variable before running configure.
>
> 3) Modified all Makefiles (after configure) to remove references to -PIC.
> This builds OK but still shows that R.binary is referencing those
> shared libraries.
FPICFLAGS is only relevant to building shared libraries, that is in
the packages and not in R.X11 (as now). You do need it to build
the shared libraries like modreg.so.
> 4) Modified R.binary link command in src/main/Makefile to link with
> libF77.a and libsunmath.a. R.binary still wants to use those
> shared libraries. Could this be built into f77?
Yes, it could. You need to get the order right, or link with your C
compiler, as current versions of R do.
I really think this would be much easier in 0.65.1. There (Solaris
2.6) all I had to do was to alter Makeconf and etc/Makeconf to have
FLIBS = -L/usr/local/lib -L/usr/ccs/lib /opt/SUNWspro/SC4.0/lib/libM77.a
/opt/SUNWspro/SC4.0/lib/libF77.a /opt/SUNWspro/SC4.0/lib/libsunmath.a -lm -lcx
Your setup may differ in detail.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list