respect CFLAGS: should I override optimizations?

Oliver Eikemeier eikemeier at
Tue Jun 1 01:32:34 PDT 2004

Roman Neuhauser wrote:
> [...]
>>Porters Handbook expresses clearly:
>>"The port should respect the CFLAGS variable. What we mean by
>>this is that the port should not set the value of this variable
>>absolutely, overriding the existing value; instead, it should
>>append whatever values it needs to the existing value. This is
>>so that build options that affect all ports can be set
>     Yes, that's *very clear*, and means that I should turn the
>     CFLAGS = -O3 -Wall ...
>     to 
>     CFLAGS += -O3 -Wall ...

It depends whether you consider `-O3' to be needed by the port.
Does it compile and run without?


More information about the freebsd-ports mailing list