Best way to override user's CFLAGS in a port?

John Polstra jdp at
Fri Sep 10 09:12:46 PDT 2004

On 10-Sep-2004 Matthias Andree wrote:
> Michael Nottebrock <michaelnottebrock at> 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.


More information about the freebsd-ports mailing list