[Rcpp-devel] Advice on installing CHOLMOD/Suitesparse
Dirk Eddelbuettel
edd at debian.org
Fri Aug 31 19:51:47 CEST 2012
On 31 August 2012 at 12:08, Douglas Bates wrote:
| On Fri, Aug 31, 2012 at 11:35 AM, Rodney Sparapani <rsparapa at mcw.edu> wrote:
| > Actually, it is not mysterious. I just checked it with R 2.15.1
| > and, if you build it with a blank CPPFLAGS in your environment, then
| > within $RHOME/etc/Makeconf CPPFLAGS is blank as well. So, as I say,
| > the problem was self-inflicted since our standard set up had
| > CPPFLAGS=-I/opt/local/include
|
| No. It's in the configure script for R
|
| ## We provide these defaults so that headers and libraries in
| ## '/usr/local' are found (by the native tools, mostly).
| if test -f "/sw/etc/fink.conf"; then
| : ${CPPFLAGS="-I/sw/include -I/usr/local/include"}
| : ${LDFLAGS="-L/sw/lib -L/usr/local/lib"}
| else
| : ${CPPFLAGS="-I/usr/local/include"}
| : ${LDFLAGS="-L/usr/local/${LIBnn}"}
| fi
Rodney is correct here, Doug. The ':' makes it use this only iff no value has
been set. So 'our' systems don't have it:
edd at max:~$ grep "^CPPF" /etc/R/Makeconf /usr/local/lib/R-devel/lib/R/etc/Makeconf
/etc/R/Makeconf:CPPFLAGS =
/usr/local/lib/R-devel/lib/R/etc/Makeconf:CPPFLAGS = -I/usr/local/include
because
edd at max:~$ grep CPPFL src/debian/R/R-2.15.1/debian/rules
CPPFLAGS= \
edd at max:~$
I tell the Debian build to use an empty CPPFLAGS (and that setting has
probably been like that for many years). My own local build of R-devel
has it set because I didn't override it.
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
More information about the Rcpp-devel
mailing list