Exported vs command line variables

2016-09-19 Thread Pietro
Hi, I have noticed that there is a difference between the two scenarios listed below: i) make CC=arm-linux-gnueabihf-gcc CPPFLAGS=[..] ii) export CPPFLAGS=[..] [RET] make CC=arm-linux-gnueabihf-gcc I have read over internet that the latter is used when appending instead of replacing/setti

Re: AW: Exported vs command line variables

2016-09-20 Thread Pietro
"Warlich, Christof" writes: >> There is no difference between the two. They both declare environment >> variables for make. > > That's not entirely true, at least not for (admittedly rather ancient) GNU > Make V3.81. > E.g., consider this Makefile: > > var := $(shell echo "echo hi" >say_hi.sh;

Re: AW: AW: Exported vs command line variables

2016-09-20 Thread Pietro
"Warlich, Christof" writes: >> > I'm not sure though if this is intended behavior or just a bug > >> Well, actually I am using version 4.1 and I do see the difference, are >> you sure it is not working as intended ? > > Well, as I said above, I'm definitely not sure. I would most likely consider