HEADS UP: Ports are not ready for CFLAGS=-O2 in 6.0
Thierry Herbelot
thierry at herbelot.com
Wed Jul 6 09:16:40 GMT 2005
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,
More information about the freebsd-current
mailing list