From edd at debian.org  Thu Jan 10 04:32:00 2013
From: edd at debian.org (Dirk Eddelbuettel)
Date: Wed, 9 Jan 2013 21:32:00 -0600
Subject: [Rd] Cannot override default  -O3 flag on Winodws,
 dll does not have symbols
In-Reply-To: <1357786702776-4655106.post@n4.nabble.com>
References: <1357786702776-4655106.post@n4.nabble.com>
Message-ID: <20718.13872.12950.378498@max.nulle.part>


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



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