Re: CC ?= gcc

Paul Smith <[email protected]> Tue, 16 Jul 2024 13:56:46 -0400
Newsgroups gmane.comp.gnu.make.general
Organization GNU's Not UNIX!
Message-ID <[email protected]>
On Tue, 2024-07-16 at 19:43 +0200, Alejandro Colomar wrote:
> I used the following:
> 
> < <
> < <       alx@debian:~/tmp/make$ env | grep CC
> < <       QT_ACCESSIBILITY=1
> < <       alx@debian:~/tmp/make$ cat GNUmakefile
> < <       GNUMAKEFLAGS += --no-builtin-rules
> < <       GNUMAKEFLAGS += --no-builtin-variables

Sorry I didn't notice this.  When asking questions it helps to call out
the important things explicitly rather than relying on the perennially
distracted to notice all the nuances.

GNUMAKEFLAGS is only "special" when read from the environment.  It has
no meaning inside a makefile; it's just a normal variable as far as
make is concerned.  You must use the MAKEFLAGS variable inside a
makefile, for it to have any effect.

I can see that the docs are not completely clear about this.  It should
be made clearer.