Y
Hacker News
new
|
ask
|
show
|
jobs
by
dewhelmed
2698 days ago
Because CFLAGS may not be set in the environment, resulting in concatenation to an undefined variable error.
2 comments
jgrahamc
2698 days ago
No such error occurs.
$ cat Makefile FOO += foo all: ; @echo $(FOO) $ make foo
link
dewhelmed
2695 days 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.
link
jschwartzi
2698 days 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.
link
dewhelmed
2695 days 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.
link