From owner-cvs-src@FreeBSD.ORG Wed Aug 4 10:25:23 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6CB016A4CE; Wed, 4 Aug 2004 10:25:23 +0000 (GMT) Received: from n33.kp.t-systems-sfr.com (n33.kp.t-systems-sfr.com [129.247.16.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id A72A643D5A; Wed, 4 Aug 2004 10:25:21 +0000 (GMT) (envelope-from harti@freebsd.org) Received: from n81.sp.op.dlr.de (n81g.sp.op.dlr.de [129.247.163.1]) i74APAX359426; Wed, 4 Aug 2004 12:25:11 +0200 Received: from zeus.nt.op.dlr.de (zeus.nt.op.dlr.de [129.247.173.3]) i74APAf223762; Wed, 4 Aug 2004 12:25:10 +0200 Received: from beagle.kn.op.dlr.de (opkndnwsbsd178 [129.247.173.178]) by zeus.nt.op.dlr.de (8.11.7+Sun/8.9.1) with ESMTP id i74AP9e27798; Wed, 4 Aug 2004 12:25:09 +0200 (MET DST) Date: Wed, 4 Aug 2004 12:25:10 +0200 (CEST) From: Harti Brandt X-X-Sender: brandt@beagle.kn.op.dlr.de To: Alexander Leidinger In-Reply-To: <20040804121452.51ca6d98@Magellan.Leidinger.net> Message-ID: <20040804122057.V96634@beagle.kn.op.dlr.de> References: <200408031856.i73IuV8c082723@repoman.freebsd.org> <20040804121452.51ca6d98@Magellan.Leidinger.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@freebsd.org cc: src-committers@freebsd.org cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.bin/make Makefile main.c nonints.h var.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Harti Brandt List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 10:25:23 -0000 On Wed, 4 Aug 2004, Alexander Leidinger wrote: AL>On Tue, 3 Aug 2004 18:56:31 +0000 (UTC) AL>Hartmut Brandt wrote: AL> AL>> harti 2004-08-03 18:56:31 UTC AL>> AL>> FreeBSD src repository AL>> AL>> Modified files: AL>> usr.bin/make Makefile main.c nonints.h var.c AL>> Log: AL>> Put variable assignments from the command line into the MAKEFLAGS AL>> variable as required by POSIX. This causes such variables to be AL>> pushed into all sub-makes called by the make (except when the MAKEFLAGS AL>> variable is explicitely changed in the sub-make's environment). AL>> This makes them also mostly un-overrideable in sub-makes except on the AL>> sub-make's command line. Therefor specifying 'make CC=icc' will cause AL>> icc to be used as C compiler in all sub-makes no matter what the Makefiles AL>> itself try to do to the CC variable. AL> AL>Yeah! AL> AL>Does this mean I can override the CFLAGS from make.conf now with 'make AL>"CFLAGS=foo bar"'? Yes, that should work. Note also that you cannot do 'cd /usr/src/usr.bin ; make SUBDIR="last leave"' anymore. AL>Does this also apply to environment variables (CFLAGS="foo bar" make)? No. Environment variables have lowest priority - command line variables and makefiles override them. But you should be able to say CFLAGS="foo bar" make -E CFLAGS to move up CFLAGS in the priority list. harti