From owner-freebsd-hackers Thu Apr 18 13:20:53 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from snark.ratmir.ru (snark.ratmir.ru [213.24.248.177]) by hub.freebsd.org (Postfix) with ESMTP id 2EF3A37B400; Thu, 18 Apr 2002 13:20:47 -0700 (PDT) Received: from snark.ratmir.ru (freebsd@localhost [127.0.0.1]) by snark.ratmir.ru (8.12.2/8.12.2) with ESMTP id g3IKKjv0000475; Fri, 19 Apr 2002 00:20:45 +0400 (MSD) (envelope-from freebsd@snark.ratmir.ru) Received: (from freebsd@localhost) by snark.ratmir.ru (8.12.2/8.12.2/Submit) id g3IKKj3M000474; Fri, 19 Apr 2002 00:20:45 +0400 (MSD) Date: Fri, 19 Apr 2002 00:20:45 +0400 From: Alex Semenyaka To: Ruslan Ermilov Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: make(1) command-line variables Message-ID: <20020418202045.GA407@snark.ratmir.ru> References: <20020413141834.GA16339@snark.ratmir.ru> <001901c1e2fe$2b64c740$1200a8c0@gsicomp.on.ca> <20020413171226.GD18143@snark.ratmir.ru> <20020418143101.GC70982@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020418143101.GC70982@sunbay.com> User-Agent: Mutt/1.3.28i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi there, On Thu, Apr 18, 2002 at 05:31:01PM +0300, Ruslan Ermilov wrote: >> make VAR=VAL # .MAKEFLAGS is empty >> make -DVAR # .MAKEFLAGS is '-D VAR' > Heh, was looking at this NetBSD commitlog today looking for another > thing. They apparently have this bug fixed as well, in the step 3 > below: :: 3. Variables set via command line, are propagated to child-makes via :: MAKEFLAGS. This behaviour appears to be necessary for POSIX (according :: to the GNU folk anyway). So what will The Right Thing be: - to take ``make'' from NetBSD - to transfer corresponding changes from NetBSD - to re-make my patch (to store the command line variables in MAKEFLAGS, not in the new variable)? Of course, I cannot perform first choice but I can do second or third ones. SY, Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message