From Kurt.Hornik@ci.tuwien.ac.at  Wed Jul 19 00:08:27 2000
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Wed, 19 Jul 2000 01:08:27 +0200
Subject: [Rd] Makevars, PKG_CFLAGS, ...
In-Reply-To: <Pine.OSF.4.21.0007170930170.31690-100000@zidsrv.sci.uni-klu.ac.at>
References: <Pine.OSF.4.21.0007170930170.31690-100000@zidsrv.sci.uni-klu.ac.at>
Message-ID: <200007182308.BAA00393@aragorn.ci.tuwien.ac.at>

>>>>> Albrecht Gebhardt writes:

> Hi,

> I'm searching for a way to override the default CFLAGS/FFLAGS (-g -02
> in my case) per package (e.g with "-g" for packages under
> development).  PKG_CFLAGS/PKG_FFLAGS is prepended to the remaining
> flags, so it can't delete a globally set "-O2" flag.

> Of course I can edit the global Makeconf file, but I was wondering if
> there is a possibility to override variables from Makeconf in the
> Makevars file inside a package tree, without creating a separate
> Makefile for this package?

In general, no.  Why would you want to do this?  The point of having
Makeconf is that it is a configuration of the development environment
that is provably known to work (as it passed make check).

CFLAGS, as per GNU Coding standards, should always be at the user's
discretion.  This is why we never add to CFLAGS.  It should be possible
to set this variable from the command line, but apparently this does not
work when using a shell script which in turn calls make.  R CMD COMPILE
works o.k. in this regard.

-k



	
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Makevars, PKG_CFLAGS, ...
Kurt Hornik