Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jul 2005 11:16:15 +0200
From:      Thierry Herbelot <thierry@herbelot.com>
To:        freebsd-current@freebsd.org
Cc:        Jeremie Le Hen <jeremie@le-hen.org>, current@freebsd.org
Subject:   Re: HEADS UP: Ports are not ready for CFLAGS=-O2 in 6.0
Message-ID:  <200507061116.17267.thierry@herbelot.com>
In-Reply-To: <20050706085737.GT73907@obiwan.tataz.chchile.org>
References:  <20041102222000.GA65845@xor.obsecurity.org> <20050706073205.GA942@galgenberg.net> <20050706085737.GT73907@obiwan.tataz.chchile.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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,



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