>>>>> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._