make/tests/scripts/variables
Dmitry Goncharov 034f862361 [SV 66037] Avoid hang/crash from MAKEFLAGS=... on command line
Make enters an infinite loop when some option and MAKEFLAGS=<value>
are specified on the command line.  For example,
    $ make -r MAKEFLAGS=hello=world

If decode_switches() runs handle_non_switch_argument() from within
the getopt() loop, it would recursively call decode_switches() to
enter a new getopt() loop, corrupting the state of the outer loop.

* src/main.c (decode_switches): Save up non-option arguments and run
handle_non_switch_argument() only after we're done with getopt().
* tests/scripts/variables/MAKEFLAGS: Add tests.
2024-08-04 16:00:48 -04:00
..
append [SV 64822, SV 36486] Fix appending to a pattern specific variable 2024-02-04 18:26:21 -05:00
automatic
conditional Support conditional modifiers on all assignment operators 2024-01-28 14:20:47 -05:00
CURDIR
DEFAULT_GOAL
define
EXTRA_PREREQS [SV 65006] Allow secondary expansion of .EXTRA_PREREQS 2024-01-06 17:39:43 -05:00
flavors Remove unnecessary parsing during makefile read 2024-01-27 16:40:36 -05:00
GNUMAKEFLAGS tests: Run each file in a separate directory 2023-04-02 17:32:09 -04:00
INCLUDE_DIRS
LIBPATTERNS
MAKE
MAKE_RESTARTS
MAKECMDGOALS
MAKEFILES
MAKEFLAGS [SV 66037] Avoid hang/crash from MAKEFLAGS=... on command line 2024-08-04 16:00:48 -04:00
MAKELEVEL
MFILE_LIST
negative Directly handle $\ line endings 2023-02-26 17:30:15 -05:00
private [SV 61463] Don't export inherited private variables 2023-01-02 23:02:33 -05:00
SHELL [SV 62654] Support GNU Make on z/OS 2023-01-08 10:45:38 -05:00
special Convert references from "GNU make" to "GNU Make" 2023-01-01 17:05:12 -05:00
undefine
WARNINGS [SV 65739] Add warning circular-dep. 2024-08-04 15:21:59 -04:00