[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #63439] [Regression] --no-builtin-variables with --warn-undefined-v
From: |
Pekka S |
Subject: |
[bug #63439] [Regression] --no-builtin-variables with --warn-undefined-variables trigger warning on GNUMAKEFLAGS |
Date: |
Mon, 16 Oct 2023 14:28:04 -0400 (EDT) |
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/