[Rd] Cannot override default -O3 flag on Winodws, dll does not have symbols

Dirk Eddelbuettel edd at debian.org
Thu Jan 10 04:32:00 CET 2013


On 9 January 2013 at 18:58, rtaylor wrote:
| In trying to compile a package with c code using Rtools, -O3 is added by
| default. This comes from Makeconf?  Compiler flags (CFLAGS="-O0 -g" ) set in
| src/Makevars.win or src/Makevars appear before this.  
| 
| nm pkg.dll reveals no symbols!
| 
| How can I compile a Windows package with "-O2 -g"?

a)  [long way] By locally building R with such a configure flag

b)  [shortcut] By editing the Makeconf file of the R installation used for
    compiling, eg in $R_HOME/etc/Makeconf (or maybe Makeconf.win)

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com



More information about the R-devel mailing list