]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 64107] Disable builtins immediately on -R or -r
authorDmitry Goncharov <dgoncharov@users.sf.net>
Sun, 30 Apr 2023 13:26:29 +0000 (09:26 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 30 Apr 2023 13:40:50 +0000 (09:40 -0400)
commit0880e5c86ab7ba92c3ba0f83bab1a230906ee657
tree75fccb4b7d42e54162b2bcf855ddd08868c8e749
parent0e06c7588961bb04c7bb01606356941baf1cb146
[SV 64107] Disable builtins immediately on -R or -r

Disable builtin variables and rules immediately, when -R or -r is
added to MAKEFLAGS inside the makefile.

* src/main.c (disable_builtins): Add new function disable_builtins().
(main): Call disable_builtins().
(reset_makeflags): Call disable_builtins().
* tests/scripts/options/dash-r: Add tests.
* tests/scripts/variables/MAKEFLAGS: Update tests.
src/main.c
tests/scripts/options/dash-r
tests/scripts/variables/MAKEFLAGS