On 7 July 2012 at 02:47, Silkworth,David J. wrote:
| I need explicit help building a plugin that will do the same things that 
Makevars.win did in the example package.  Perhaps we could call this plugin 
"RcppGSL.win" or something similar and make it available to everyone.

Actually, the same plugin should work. We should be able to branch inside
based on what the platform is.  

In fact, looking at RcppGSL/R/inline.RRcppGSL/R/inline.R, we see that the
Windows side is currently empty:

if(.Platform$OS.type=="windows") {
    LIB_GSL <- Sys.getenv("LIB_GSL")
    gsl_cflags <- sprintf( "-I%s/include", LIB_GSL )
    gsl_libs   <- sprintf( "-L%s/lib -lgsl -lgslcblas", LIB_GSL )
    know_flags <- TRUE
} else {             
    gsl_cflags <- ""
    gsl_libs <- ""
    know_flags <- FALSE    
}

because there simply is not general way to set these for all Windows
systems. On Linux I have

edd@max:~$ gsl-config --cflags
-I/usr/include
edd@max:~$ gsl-config --libs
-L/usr/lib -lgsl -lgslcblas -lm
edd@max:~$ 

but on Windows all bets are, as usual, off as we can't even assume a sane
$PATH.

If you have fixes that work in a general setup, I'd be delighted to
incorporate them.

Dirk

-- 
Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com  
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to