[3968] in Athena Bugs
make and MAKEOPT
daemon@ATHENA.MIT.EDU (John Carr)
Sat Jan 13 06:51:11 1990
To: bugs@ATHENA.MIT.EDU
Date: Sat, 13 Jan 90 06:50:56 EST
From: John Carr <jfc@ATHENA.MIT.EDU>
If the environment variable "MAKEOPT" is set to a string containing spaces
(whether or not quoted by any convention means) the results are unexpected.
In particular, if $MAKEOPT is
CC='something -Dsomething'
(with "'" present in the variable or not) make dies complaining
Make: Unknown flag argument D. Stop.
Since there is no documented dependence on this variable, this is
unreasonable behavior. That make references MAKEOPT should be documented,
and any limitation in use of this variable should be documented if it is
not fixed.
(I understand why this is losing, but since the dependence on $MAKEOPT is
undocumented, I feel justified in setting it to anything I want and not
losing.)