Re: [Rd] Why is my R package still compiling with the O2 flag?

2014-09-26 Thread kaveh
Dear Prof Ripley, Thanks for the pointer to CXX1XFLAGS: it helped me solve the problem. As usual, thanks for your prompt and helpful answer, Best regards, On 2014-09-26 11:30, Prof Brian Ripley wrote: You have not given us the 'at a minimum' information required by the posting guide, and it

Re: [Rd] Why is my R package still compiling with the O2 flag?

2014-09-26 Thread Prof Brian Ripley
You have not given us the 'at a minimum' information required by the posting guide, and it is -O2 etc (not O2 and not -o2). Also, cpp is the C pre-processor: if you mean C++, say so. The default compiler flags are set by whoever compiled R: it is entirely possibly they were set differently for

[Rd] Why is my R package still compiling with the O2 flag?

2014-09-26 Thread kaveh
When I install an R package with cpp codes such as rrcov via CRAN (under R 3.1.1, using no Makevars file and under Ubuntu 14.04 using GCC 4.8), the cpp code is compiled with the -o3 flag (in fact, looking at the Makeconf file this seem to again be the default since R 3.1.1) But when I install m