[make] When using make with --warn-undefined-variables -R options getting a warning with correct makefile or no makefile
aandrejevas opened this issue · comments
Description / Steps to reproduce the issue
- pacman -S mingw-w64-ucrt-x86_64-make or pacman -S make
- mingw32-make --warn-undefined-variables -R or make --warn-undefined-variables -R
- Warning is printed: "make: warning: undefined variable 'GNUMAKEFLAGS'"
The warning is not shown if GNUMAKEFLAGS environment variable is defined or it is defined in a makefile or by an option -E "GNUMAKEFLAGS:=". I think somewhere internal make code uses that variable but it is undefined because of the -R option so it shows a warning because of the --warn-undefined-variables option.
Expected behavior
make would not show that warning when using --warn-undefined-variables -R options.
Actual behavior
Verification
- I have verified that my MSYS2 is up-to-date before submitting the report (see https://www.msys2.org/docs/updating/)
Windows Version
MSYS_NT-10.0-19045
MINGW environments affected
- MINGW64
- MINGW32
- UCRT64
- CLANG64
- CLANG32
- CLANGARM64
Are you willing to submit a PR?
No response
Does this happen with a specific project?
@Biswa96 No. This happens when calling make with --warn-undefined-variables -R options and not using a makefile (see screenshot in issue) or with any project whose makefile does not define GNUMAKEFLAGS variable.