PATCH: Implement DJ's observation on $(WERROR)

Loren James Rittle rittle@latour.rsch.comm.mot.com
Thu Mar 20 01:41:00 GMT 2003


In article <200303200125.h2K1PDR00987@greed.delorie.com>,
DJ Delorie<dj@redhat.com> writes:

> You'd have to double or quadruple the $'s (plus a myriad of quotes and
> protected quotes) to keep make from expanding it too early.  But
> that's not what I meant.  I meant do this:

> STAGE2_FLAGS_TO_PASS = \
> 	WERROR="@WERROR@" \
> 	STRICT_WARN="$(STRICT2_WARN) @WERROR@" \
>                                      ^^^^^^^^

Ah, but @WERROR@ is correctly expanded at configure-time in this context:

STRICT2_WARN = -Wtraditional -pedantic -Wno-long-long @WERROR@

My original questions (which I now see was not perfectly clear):

Do you favor seeing:

STRICT2_WARN = -Wtraditional -pedantic -Wno-long-long @WERROR@

or

STRICT2_WARN = -Wtraditional -pedantic -Wno-long-long $$$$(WERROR)
                                                      ^^^^^^^^^^ whatever is
						      really required to
						      pass through to stage2,3

?

Was there any reason to avoid seeing (what the patch as posted did):

STRICT2_WARN = -Wtraditional -pedantic -Wno-long-long @WERROR@

?



More information about the Gcc-patches mailing list