From owner-freebsd-current@FreeBSD.ORG Sat Aug 21 05:44:54 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C63816A4CE for ; Sat, 21 Aug 2004 05:44:54 +0000 (GMT) Received: from dns12.mail.yahoo.co.jp (dns12.mail.yahoo.co.jp [210.81.151.145]) by mx1.FreeBSD.org (Postfix) with SMTP id 0327243D3F for ; Sat, 21 Aug 2004 05:44:53 +0000 (GMT) (envelope-from ayakokiko@ybb.ne.jp) Received: from unknown (HELO gorgon.near.this) (219.11.234.11 with poptime) by dns12.mail.yahoo.co.jp with SMTP; 21 Aug 2004 05:44:51 -0000 X-Apparently-From: Received: from hydra.near.this (hydra.near.this [10.0.3.20]) by gorgon.near.this (Postfix) with ESMTP id 464D87F24 for ; Sat, 21 Aug 2004 14:44:45 +0900 (JST) Received: by hydra.near.this (Postfix, from userid 100) id ADC7D9845; Sat, 21 Aug 2004 14:44:44 +0900 (JST) Date: Sat, 21 Aug 2004 14:44:44 +0900 From: horio shoichi To: freebsd-current@freebsd.org In-Reply-To: <20040820123605.GD29568@ip.net.ua> References: <20040820123605.GD29568@ip.net.ua> X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20040821.054444.d1744bc19008622e.10.0.3.20@bugsgrief.net> Subject: Re: setting CFLAGS in /etc/make.conf X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Aug 2004 05:44:54 -0000 On Fri, 20 Aug 2004 15:36:05 +0300 Ruslan Ermilov wrote: > > P.S. I start to hate command-line variable in make(1). ;) > > > Cheers, > -- > Ruslan Ermilov > ru@FreeBSD.org > FreeBSD committer > I forgot about command line variations. % cat cflags .PHONY : a a : # ${CFLAGS} make -f cflags dee-dee dee-dee : # ${CFLAGS} % make -f cflags # -O -pipe make -f cflags dee-dee # -O -pipe % env CFLAGS="do-do" make -f cflags -E CFLAGS # do-do make -f cflags dee-dee # do-do % And, amazing ! featuristic ! % make -f cflags -E CFLAGS CFLAGS=hehe # hehe make -f cflags dee-dee # hehe % echo $CFLAGS CFLAGS: Undefined variable. If the makefiles in nest don't have conflicting variable requirements, then passing variable values over to the lower strata makefiles seems not hard. BTW, o tested on 4.9-STABLE, o /etc/make.conf is not mocked up one (as I wrote in previous text). horio shoichi