respect CFLAGS: should I override optimizations?

Michael Nottebrock michaelnottebrock at
Tue Jun 1 03:52:51 PDT 2004

On Tuesday 01 June 2004 10:32, Oliver Eikemeier wrote:

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

Exactly. It's really an application bug to benevolently force optimizations 
via clobbering CFLAGS, the flawed rationale is almost always "Many people 
compile from source, yet many people have no clue about CFLAGS and their 
compiler, I'll make sure they don't get "pessimized" stuff."

The authors of such software are usually not aware of how flaky those 
'non-pessimizations' can be on platforms !=386. However, I personally tend to 
leave such optimization clobbering intact, if the software in question sets 
them not only depending on the compiler (case "$GCC"), but also on the 
platform, i.e. has a case for each platform FreeBSD supports or only enables 
the optimizations for one single platform and sticks to verbatim CFLAGS 

It might be actually worth a try to contact the developers and ask them to do 
away with the CFLAGS clobbering in the upstream source.

   ,_,   | Michael Nottebrock               | lofi at
 (/^ ^\) | FreeBSD - The Power to Serve     |
   \u/   | K Desktop Environment on FreeBSD |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url :

More information about the freebsd-ports mailing list