[Rd] Can one set CFLAGS/CXXFLAGS during R INSTALL ?

Dirk Eddelbuettel edd@debian.org
Wed, 27 Feb 2002 17:10:02 -0600


As far as I can see, and even test, R COMPILE CXXFLAGS="..." foo.c works
just fine and passes the desired options on to gcc/g++.

I have not been able to find a way to do this with R INSTALL foo*.tar.gz,
other than by edting $RHOME/etc/Makeconf. 

While editing Makeconf is probably good enough for most users, it is not
something I can do during (automated, unattended) builds of Debian packages.
However, I need this to change the optimization switches for the survival
package as some of the cox*.c files kill gcc with -O, -O1 or -O2 on the m68k
architecture (see bugs.debian.org/135943 or buildd.debian.org and search for
r-recommended for details).

Is there an easy way to control these compiler switches?

Thanks, Dirk

-- 
Good judgement comes from experience; experience comes from bad judgement. 
							    -- Fred Brooks
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._