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.
LdFlags(print=TRUE)
CFlags(print=TRUE)
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.
vignette("Rcpp-introduction")
.
pkg-config
system tool.