Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Aug 2004 12:25:10 +0200 (CEST)
From:      Harti Brandt <harti@freebsd.org>
To:        Alexander Leidinger <Alexander@Leidinger.net>
Cc:        cvs-all@freebsd.org
Subject:   Re: cvs commit: src/usr.bin/make Makefile main.c nonints.h var.c
Message-ID:  <20040804122057.V96634@beagle.kn.op.dlr.de>
In-Reply-To: <20040804121452.51ca6d98@Magellan.Leidinger.net>
References:  <200408031856.i73IuV8c082723@repoman.freebsd.org> <20040804121452.51ca6d98@Magellan.Leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 4 Aug 2004, Alexander Leidinger wrote:

AL>On Tue, 3 Aug 2004 18:56:31 +0000 (UTC)
AL>Hartmut Brandt <harti@freebsd.org> 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



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