[R] passing arguments to R CMD SHLIB

Faheem Mitha faheem at email.unc.edu
Wed Mar 14 03:51:41 CET 2001

On Tue, 13 Mar 2001, Prof Brian D Ripley wrote:

> On Tue, 13 Mar 2001, Faheem Mitha wrote:

> > it doesn't look like the arguments -O2 and -Wall get passed down. Is there
> > some reason for this? I certainly would like error checking to be turned
> > on as much as possible.
> Well, no one said they would be!  If you want to alter flags, they are
> set as CFLAGS R_HOME/etc/Makeconf or Makevars. I have -O2 -Wall -pedantic.
> I don't think you need -lm as R is linked against that.

Is it possible to set CFLAGS at the user level? I am usually not terribly
keen to alter system config files (Makeconf in this case). For one thing,
I don't always have root access on the systems I use, and for another I
tend to lose my changes when I upgrade.


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