Skip to content
Prev 15109 / 63421 Next

Compiler-specific flags with PKG_CFLAGS

On Wed, 9 Feb 2005, Kurt Hornik wrote:

            
Thanks for the suggestions. Setting the environment prior to running
R CMD is not practical for me, typing-wise. I guess if made my
.Renviron file architecture-specific it might work, but that seems
overkill. That leaves writing a makefile, a script to rename
'src/Makevars' as 'src/Makevars_d' prior to upload, or adding the
file to my .Rbuildignore as I only really need to see the additional
warnings when running R CMD check.
GNU make availability is unlikely at best. And I don't think
this approach is going to be much help for me. I only wanted
to augment the compiler settings for the packages I'm developing,
not override the ones for the R itself. You've managed to make
me think a package configure script might not be so hard after
all :)

Thanks for your insight.

----------------------------------------------------------
SIGSIG -- signature too long (core dumped)