]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 46013] Allow recursive variable overrides from Makefiles
authorPaul Smith <psmith@gnu.org>
Sun, 19 May 2019 16:16:14 +0000 (12:16 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 19 May 2019 23:25:50 +0000 (19:25 -0400)
commitd7ff21ecd70bbf9dfda7b3a136b22f631cd80d22
tree65d7554922d1bc9bebfa22ca30741f4d6cd4c8ca
parentda2b275658af2cb973a3c8b6e3c17ed47c03e560
[SV 46013] Allow recursive variable overrides from Makefiles

Ensure that variable overrides are passed to recursive make instances
even if no overrides were provided on the command line.
Fix suggested by Rici Lake <ricilake@gmail.com>

* src/main.c (define_makeflags): Add overrides without respect to the
value of command_variables.
* tests/scripts/features/recursion: Add a test.
src/main.c
tests/scripts/features/recursion