On 7/5/22 16:11, Ivan Krylov wrote:
On Tue, 5 Jul 2022 09:35:05 -0400
Duncan Murdoch <murdoch.dun...@gmail.com> wrote:

I see the -O0 option that I added, but afterwards -O2 coming from
somewhere in R.
It seems to come from the CXXFLAGS macro defined in /etc/R/Makeconf.
It's the last to be added to ALL_CXXFLAGS, so you probably have to
overwrite it in ~/.R/Makevars.

Yes. I set both CFLAGS and CXXFLAGS in my Makevars_dbg0 file and let R use it via R_MAKEVARS_USER.
See R-Admin, 6.3.3, Customizing package compilation, for more.

Tomas

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to