]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 63537] Pass enabled-by-default switches to submake
authorDmitry Goncharov <dgoncharov@users.sf.net>
Sun, 18 Dec 2022 19:43:41 +0000 (14:43 -0500)
committerPaul Smith <psmith@gnu.org>
Mon, 19 Dec 2022 01:06:38 +0000 (20:06 -0500)
commit8e805c7ba66b731cdd8284940f1a807ccd0d5cd4
tree38a18615d425aa5801af9023126f1450803c7c0c
parent132528b266eae090458ee35d37ce63246932a1a7
[SV 63537] Pass enabled-by-default switches to submake

Certain switches, such as -S or --no-silent, turn on behavior that is
enabled by default.  When a switch is specified via the command line,
makefile, or env, ensure the switch is added to MAKEFLAGS.

* src/main.c (struct command_switch): Add bit "specified".
(switches): Initialize command_switch->specified.
(decode_switches): Set command_switch->specified.
(define_makeflags): Check command_switch->specified.
src/main.c