Follow-up Comment #11, bug #63439 (project make):

GNUMAKEFLAGS is effectively unconditionally expanded at
[https://git.savannah.gnu.org/cgit/make.git/tree/src/main.c?h=4.4.1#n2086
main.c:2086].

The warning message, should the environment variable not exist, is not
suppressed for GNUMAKEFLAGS until the commit
[https://git.savannah.gnu.org/cgit/make.git/commit/src/variable.c?id=ebe0a1c9f1d1529a3f2c64d628686f500d460b0e
ebe0a1c9f1d1529a3f2c64d628686f500d460b0e].  Version 4.4.1 predates this.

As a workaround just define (perhaps an empty) GNUMAKEFLAGS environment
variable.

# make --version
GNU Make 4.4.1
Built for x86_64-pc-msys

# make --no-builtin-variables --warn-undefined-variables
make: warning: undefined variable 'GNUMAKEFLAGS'
make: *** No targets specified and no makefile found.  Stop.

# GNUMAKEFLAGS= make --no-builtin-variables --warn-undefined-variables
make: *** No targets specified and no makefile found.  Stop.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63439>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to