Skip to content
Prev 6583 / 10988 Next

[Rcpp-devel] question re: LdFlags, RcppLdFlags

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20131008/9b11ee2b/attachment.html>

Thread (28 messages)

Kevin Ushey question re: LdFlags, RcppLdFlags Oct 8 Dirk Eddelbuettel question re: LdFlags, RcppLdFlags Oct 8 Dirk Eddelbuettel question re: LdFlags, RcppLdFlags Oct 8 Romain Francois question re: LdFlags, RcppLdFlags Oct 9 Dirk Eddelbuettel question re: LdFlags, RcppLdFlags Oct 9 Romain Francois question re: LdFlags, RcppLdFlags Oct 9 Dirk Eddelbuettel question re: LdFlags, RcppLdFlags Oct 9 Kevin Ushey question re: LdFlags, RcppLdFlags Oct 9 Dirk Eddelbuettel question re: LdFlags, RcppLdFlags Oct 9 Dirk Eddelbuettel question re: LdFlags, RcppLdFlags Oct 9 Romain Francois question re: LdFlags, RcppLdFlags Oct 9 Romain Francois question re: LdFlags, RcppLdFlags Oct 9 Dirk Eddelbuettel question re: LdFlags, RcppLdFlags Oct 9 Romain Francois question re: LdFlags, RcppLdFlags Oct 9 Dirk Eddelbuettel question re: LdFlags, RcppLdFlags Oct 9 Romain Francois question re: LdFlags, RcppLdFlags Oct 9 Dirk Eddelbuettel question re: LdFlags, RcppLdFlags Oct 9 Romain Francois question re: LdFlags, RcppLdFlags Oct 9 Dirk Eddelbuettel question re: LdFlags, RcppLdFlags Oct 9 Romain Francois question re: LdFlags, RcppLdFlags Oct 9 Dirk Eddelbuettel (Was: question re: LdFlags, RcppLdFlags Oct 10 Romain Francois (Was: question re: LdFlags, RcppLdFlags Oct 10 Dirk Eddelbuettel (Was: question re: LdFlags, RcppLdFlags Oct 10 Romain Francois (Was: question re: LdFlags, RcppLdFlags Oct 10 Dirk Eddelbuettel (Was: question re: LdFlags, RcppLdFlags Oct 10 Romain Francois (Was: question re: LdFlags, RcppLdFlags Oct 10 Dirk Eddelbuettel (Was: question re: LdFlags, RcppLdFlags Oct 10 Romain Francois (Was: question re: LdFlags, RcppLdFlags Oct 10