On Tue, Jul 16, 2024 at 05:34:42PM GMT, Alejandro Colomar wrote: > [I'm not subscribed to the list; please keep me in CC] > > Hi Paul,
Hi Paul, > Am I doing anything wrong? Sorry for not saying it explicitly. > > alx@debian:~/tmp/make$ env | grep CC > QT_ACCESSIBILITY=1 > alx@debian:~/tmp/make$ cat GNUmakefile > GNUMAKEFLAGS += --no-builtin-rules > GNUMAKEFLAGS += --no-builtin-variables I expect the line above to drop any builtin setting of $(CC). (And as can be seen in the env(1) run, I didn't set it in the environment.) > GNUMAKEFLAGS += --warn-undefined-variables > > CC ?= foo And now I say: If CC is not set in the Makefile (I didn't) nor in the environment (I didn't either), set it to foo. > > $(info $(CC)) I expect this should print "foo". > alx@debian:~/tmp/make$ make > cc But it prints the builtin value "cc". Why? > make: *** No targets. Stop. > alx@debian:~/tmp/make$ make --version > GNU Make 4.4.1 > Built for x86_64-pc-linux-gnu > Copyright (C) 1988-2023 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <https://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Cheers, Alex -- <https://www.alejandro-colomar.es/>
signature.asc
Description: PGP signature