Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Nov 2006 22:36:40 +0100
From:      Jeremie Le Hen <jeremie@le-hen.org>
To:        Ruslan Ermilov <ru@freebsd.org>
Cc:        freebsd-hackers@freebsd.org, Jeremie Le Hen <jeremie@le-hen.org>
Subject:   Re: [fbsd] Re: Puzzling variables behaviour in make(1)
Message-ID:  <20061105213640.GZ20405@obiwan.tataz.chchile.org>
In-Reply-To: <20061105211413.GA72777@rambler-co.ru>
References:  <20061105200447.GY20405@obiwan.tataz.chchile.org> <20061105211413.GA72777@rambler-co.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Ruslan,

thank you for your swiftness.

On Mon, Nov 06, 2006 at 12:14:13AM +0300, Ruslan Ermilov wrote:
> Command-line variables are of the highest precedence.
> 
> %%%
> Index: parse.c
> ===================================================================
> RCS file: /home/ncvs/src/usr.bin/make/parse.c,v
> retrieving revision 1.111
> diff -u -p -r1.111 parse.c
> --- parse.c	22 Jul 2006 14:00:31 -0000	1.111
> +++ parse.c	5 Nov 2006 21:09:51 -0000
> @@ -2231,7 +2231,7 @@ parse_message(char *line, int iserror, i
>  	while (isspace((u_char)*line))
>  		line++;
>  
> -	line = Buf_Peel(Var_Subst(line, VAR_GLOBAL, FALSE));
> +	line = Buf_Peel(Var_Subst(line, VAR_CMD, FALSE));
>  	Parse_Error(iserror ? PARSE_FATAL : PARSE_WARNING, "%s", line);
>  	free(line);
>  
> %%%

The patch works.

Regards,
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061105213640.GZ20405>