Hi,
In previous versions of Rcpp, we typically constructed the PKG_LIBS
variable in Makevars through
PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"`
This is also what's done in e.g. Rcpp.package.skeleton. However, following
the new guidelines from CRAN, RcppLdFlags was exported, but not LdFlags. I
wonder if the intention was to export LdFlags as well, so that we can
simply omit one colon from the LdFlags call:
PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp::LdFlags()"`
As is, because RcppLdFlags was exported and returns its result invisibly,
it's required to write e.g.
PKG_LIBS = `$(R_HOME)/bin/Rscript -e "cat(Rcpp::RcppLdFlags())"`
which is a bit uglier.
Can we have LdFlags exported in addition to RcppLdFlags? It would also help
keep everything consistent with the available documentation.
-Kevin
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel