msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.

Home Page:https://packages.msys2.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[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

  1. pacman -S mingw-w64-ucrt-x86_64-make or pacman -S make
  2. mingw32-make --warn-undefined-variables -R or make --warn-undefined-variables -R
  3. 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

image

Verification

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.