j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
On Mon, Jan 18, 2016 at 01:38:04PM +0100, Peter Lemenkov wrote:
But why do you need it? Why doesn't e.g.
make DESTDIR=/opt/bla
work for you as-is? Or do you need those vars to be passed in via the environment?
Unfortunately this DESTDIR trick won't work. Explicitly stated variables from the Makefile itself have preference over the environment variables unless they stated with "?=". At least this is how GNU make works.
But this is *not* an environment variable!
Yes, sorry. Anyway we can't override Makefile-variables that way unless we allow it.
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?
Segher
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!