From owner-freebsd-current@FreeBSD.ORG Wed Jul 6 09:16:40 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 2406416A41C; Wed, 6 Jul 2005 09:16:40 +0000 (GMT) (envelope-from thierry@herbelot.com) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id C946043D49; Wed, 6 Jul 2005 09:16:39 +0000 (GMT) (envelope-from thierry@herbelot.com) Received: from herbelot.dyndns.org (bne75-4-82-227-159-103.fbx.proxad.net [82.227.159.103]) by postfix3-2.free.fr (Postfix) with ESMTP id D88CCC0F8; Wed, 6 Jul 2005 11:16:38 +0200 (CEST) Received: from diversion.herbelot.nom (diversion.herbelot.nom [192.168.2.6]) by herbelot.dyndns.org (8.13.3/8.13.3) with ESMTP id j669GKkm017320; Wed, 6 Jul 2005 11:16:25 +0200 (CEST) From: Thierry Herbelot To: freebsd-current@freebsd.org Date: Wed, 6 Jul 2005 11:16:15 +0200 User-Agent: KMail/1.8.1 References: <20041102222000.GA65845@xor.obsecurity.org> <20050706073205.GA942@galgenberg.net> <20050706085737.GT73907@obiwan.tataz.chchile.org> In-Reply-To: <20050706085737.GT73907@obiwan.tataz.chchile.org> X-Warning: Windows can lose your files X-Op-Sys: Le FriBi de la mort qui tue X-Org: TfH&Co X-MailScanner: Found to be clean MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200507061116.17267.thierry@herbelot.com> Cc: Jeremie Le Hen , current@freebsd.org Subject: Re: HEADS UP: Ports are not ready for CFLAGS=-O2 in 6.0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: thierry@herbelot.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2005 09:16:40 -0000 Le Wednesday 6 July 2005 10:57, Jeremie Le Hen a écrit : > Hi Ulrich, > > > Whats wrong with > > > > .if ${.CURDIR:M/usr/ports*} > > CFLAGS= -O -pipe -foo > > .endif > > > > in /etc/make.conf? > > Nothing wrong, but it's too tricky for end users. Only a small amount > of person using FreeBSD knows make(1) enough to do this : this requires > to know what is ${.CURDIR} and how to match a variable against a > pattern. and it does not work if he ports tree is "physically" elsewhere (mine is shared over NFS from /files2/ports -> .CURDIR does not begin with /usr/ports). Perhaps a better way would be to use a variable set in bsd.ports.mk (BUILDING_PORT="YES") TfH > > Regards,