Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dewhelmed
· 7y ago · 0 comments
Because CFLAGS may not be set in the environment, resulting in concatenation to an undefined variable error.
Comments
[–]
jgrahamc
7y ago
No such error occurs.
$ cat Makefile FOO += foo all: ; @echo $(FOO) $ make foo
[–]
dewhelmed
OP
7y ago
My bad, I felt like I've seen that error pop up before in my Makefiles, but I should have double-checked before commenting.
[–]
jschwartzi
7y ago
There's no such thing as an undefined variable in Make. The variable expands to text. Variables which are not defined by definition expand to no text.
[–]
dewhelmed
OP
7y ago
My bad, I felt like I've seen that error pop up before in my Makefiles, but I should have double-checked before commenting.