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

John Polstra jdp at
Tue Sep 7 12:58:50 PDT 2004

On 07-Sep-2004 Charles Swiger wrote:
> Users would prefer the software to build properly, so yes, doing 
> something to switch -Ox to plain -O is better than marking the port 
> I don't think that changing a specific flag in a port which needs to do 
> so is unreasonable, but I dislike the notion of second-guessing the 
> end-user.  The whole point of preserving CFLAGS set in /etc/make.conf 
> or via the environment is to make it easy for people to build all of 
> the software using whatever flags they want.

Agreed, but some user preferences (for example, "-g") are more
important than others (such as optimization levels).

> Can we help you fix the issues with ezm3 when compiled with -O2, rather 
> than figuring ways to hack CFLAGS...?

In the long run, probably yes.  At the moment I'm just trying to
staunch the flow of bug reports for this thing.


More information about the freebsd-ports mailing list