On 21/01/16 14:12, Peter Lemenkov wrote:
Hello All! Sorry for the delayed answer.
2016-01-18 14:53 GMT+01:00 Segher Boessenkool segher@kernel.crashing.org:
Why not? Manual says to do just this; and I tested it just now to make sure I am not imagining things, and it works fine. So what is unusual in your setup?
I accidentally confused you - everything works fine if I pass variables like you suggested. But I'd like to add possibility to override variables using envronment variables.
This is exactly how various Linux distros' buildsystems are working. So being able to setup variables system-wide would be helpful!
If you're trying to override DESTDIR then you'd already need something that executes "make DESTDIR=/path/to/destdir" so if this works as Segher suggests then can you not do "make DESTDIR=$DESTDIR" or similar?
ATB,
Mark.