From edd@debian.org  Wed Feb 27 23:10:02 2002
From: edd@debian.org (Dirk Eddelbuettel)
Date: Wed, 27 Feb 2002 17:10:02 -0600
Subject: [Rd] Can one set CFLAGS/CXXFLAGS during R INSTALL ?
Message-ID: <20020227231002.GA4104@sonny.eddelbuettel.com>


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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


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