LdFlags: Provide RcppGSL Compiler and Linker Flags

View source: R/inline.R

LdFlagsR Documentation

Provide RcppGSL Compiler and Linker Flags

Description

LdFlags and CFlags return the required flags and options for the compiler and system linker in order to build against GNU GSL. This allows portable use of RcppGSL (which needs the GNU GSL) as package location as well as operating-system specific details are abstracted away behind the interface of this function.

LdFlags and CFlags are commonly called from the files Makevars (or Makevars.win) rather than in an interactive session.

Usage

LdFlags(print=TRUE)
CFlags(print=TRUE)

Arguments

print

A boolean determining whether the requested value is returned on the standard output, or silenly as a value.

Details

Thee functions are not meant to used interactively, and are intended solely for use by the build tools.

The values that are returned are acquired by the package at load time. On Linux and OS X, the pkg-config program is queried. On Windows, environment variables used for GNU GSL builds with R are used.

Value

A character vector suitable by use by the system compiler linker in order to compile and/or link against the GNU GSK.

Author(s)

Dirk Eddelbuettel and Romain Francois

References

Dirk Eddelbuettel and Romain Francois (2011). Rcpp: Seamless R and C++ Integration. Journal of Statistical Software, 40(8), 1-18. URL http://www.jstatsoft.org/v40/i08/ and available as vignette("Rcpp-introduction").

See Also

The document of the pkg-config system tool.


RcppGSL documentation built on Jan. 13, 2023, 1:13 a.m.