[R] choosing g/g++ compiler executable in R CMD SHLIB
faheem at email.unc.edu
Sun Nov 18 22:09:56 CET 2001
On Sun, 18 Nov 2001, Kurt Hornik wrote:
> This is actually an FAQ:
> How can I change compilation flags?
> Suppose you have C code file for dynloading into R, but you want to
> use `R CMD SHLIB' with compilation flags other than the default ones
> (which were determined when R was built). You could change the file
> ``R_HOME'/etc/Makeconf' to reflect your preferences. If you are a
> Bourne shell user, you can also pass the desired flags to Make (which
> is used for controlling compilation) via the Make variable `MAKEFLAGS',
> as in
> MAKEFLAGS="CFLAGS=-O3" R CMD SHLIB *.c
Oh, right. Sorry, I usually look at FAQs. I feel stupid not to have
checked this one out before posting to the list. Sorry.
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