diff options
author | Dmitry Goncharov <dgoncharov@users.sf.net> | 2023-04-30 09:26:29 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2023-04-30 09:40:50 -0400 |
commit | 0880e5c86ab7ba92c3ba0f83bab1a230906ee657 (patch) | |
tree | 75fccb4b7d42e54162b2bcf855ddd08868c8e749 /tests/scripts/variables/MAKEFLAGS | |
parent | 0e06c7588961bb04c7bb01606356941baf1cb146 (diff) | |
download | make-git-0880e5c86ab7ba92c3ba0f83bab1a230906ee657.tar.gz |
[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.
Diffstat (limited to 'tests/scripts/variables/MAKEFLAGS')
-rw-r--r-- | tests/scripts/variables/MAKEFLAGS | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/scripts/variables/MAKEFLAGS b/tests/scripts/variables/MAKEFLAGS index fc18d650..aab4a0e1 100644 --- a/tests/scripts/variables/MAKEFLAGS +++ b/tests/scripts/variables/MAKEFLAGS @@ -297,7 +297,7 @@ MAKEFLAGS${fl}R all:; \$(info \$(MAKEFLAGS)) ", 'bye=moon', "$answer -R$answer +rR$answer rR$answer #MAKE#: 'all' is up to date.\n"); } |