respect CFLAGS: should I override optimizations?

Kris Kennaway kris at
Mon May 31 18:36:01 PDT 2004

On Tue, Jun 01, 2004 at 01:31:06AM +0200, Roman Neuhauser wrote:
> I'm updating biology/migrate, the upstream includes
> and configure says:
> case "$GCC" in
> 	yes) CFLAGS="-O3 -Wall -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -D$CPUTYPE" ;;
> If I was to take Porter's Hang^Hdbook literally, I would change the
> set (=) to append (+=) and be done with it, but is that really what
> I'm expected to do?

That's not the intent..usually the port should be built with *only*
the optimizations specified in CFLAGS/CXXFLAGS, not CFLAGS overridden
by the software defaults.  Perhaps the porter's handbook is unclear.

If you want to leave the software optimizations as an option, you
could put them under WITH_OPTIMIZED_CFLAGS, which seems to have become
a de facto standard.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-ports mailing list