Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Sep 2004 09:12:39 -0700 (PDT)
From:      John Polstra <jdp@polstra.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: Best way to override user's CFLAGS in a port?
Message-ID:  <XFMail.20040910091239.jdp@polstra.com>
In-Reply-To: <m3d60ubcst.fsf@merlin.emma.line.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10-Sep-2004 Matthias Andree wrote:
> Michael Nottebrock <michaelnottebrock@gmx.net> writes:
> 
>> If it's so well known that -O higher than 1 will not work, the
>> upstream source should be modified to that -O will be appended to any
>> CFLAGS, thus overriding any user-specified optimization setting.
> 
> Indeed, Horio and you are right, hadn't thought of the obvious way :)

Yes, this sounds like a good solution.  It won't work if the user
specifies CFLAGS on the make command line, but I don't care about
that case.

John



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