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

Matthias Andree ma at
Fri Sep 10 04:09:41 PDT 2004

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 :)

Matthias Andree

Encrypted mail welcome: my GnuPG key ID is 0x052E7D95 (PGP/MIME preferred)

More information about the freebsd-ports mailing list