make versionitis? (OpenBSD)

Donn Terry donnte@microsoft.com
Fri Nov 3 12:20:00 GMT 2000


Before I go off and try to figure out a fix (or workaround), what are the
rules of
engagement w.r.t. make versions?

Specifically, recently the line 
   GCC_WARN_FLAGS= $(LOOSE_WARN) $($(@D)-warn)
was introduced.

This causes OpenBSD make 1.6 to do bad things (the command line ends up
with "-warn)" on it, causing the shell to gag on the ")".  (There may be
other
makes with this problem; the wording in the standard isn't clear about
exactly how nested $() constructs in make should be parsed, and being
pedandtic (which in this case is opposite of having common sense) this is
a legal way to parse this construct.)  (The issue w.r.t. the standard is
being
addressed elsewhere.)

(Or has this been fixed in OpenBSD?)

It works in gmake, and since it's been that way for a week or two,
presumably in
other makes as well.

Is this considered an acceptable usage for gcc's purposes, or not?

Donn



More information about the Gcc-bugs mailing list