Date: Wed, 6 Jul 2005 22:02:25 +0200 From: Tomasz Pilat <poncki.lists@axelspringer.com.pl> To: current@freebsd.org Subject: Re: HEADS UP: Ports are not ready for CFLAGS=-O2 in 6.0 Message-ID: <168519096.20050706220225@axelspringer.com.pl> In-Reply-To: <200507061116.17267.thierry@herbelot.com> References: <20041102222000.GA65845@xor.obsecurity.org> <20050706073205.GA942@galgenberg.net> <20050706085737.GT73907@obiwan.tataz.chchile.org> <200507061116.17267.thierry@herbelot.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thierry,
Wednesday, July 6, 2005, 11:16:15 AM, you wrote:
>> > 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).
Well, i have ports NFS-mounted too (but in /usr/ports) and i think if
user is able to do NFS mounts he is able to tweak his make.conf too.
Of course we are talking about temporary hack till all ports will be
ready for -O2.
> Perhaps a better way would be to use a variable set in bsd.ports.mk
> (BUILDING_PORT="YES")
It's too late i think:
[21:42 {ttyp1} (0) root@FeeBee:/usr/ports/shells/bash2]# make -V .MAKEFILE_LIST
/usr/share/mk/sys.mk /etc/make.conf .. /usr/share/mk/bsd.compat.mk ..
/usr/share/mk/bsd.cpu.mk .. .. Makefile /usr/share/mk/bsd.port.pre.mk
/usr/share/mk/bsd.port.mk [...]
Ponc
--
Tomasz Pilat http://poncki.freebsd.pl./
AXEL SPRINGER POLSKA Sp. z o.o. PONC-RIPE | PGPKEY-EDEB47FC
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on e-mail/Usenet?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?168519096.20050706220225>
