respect CFLAGS: should I override optimizations?
kris at obsecurity.org
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 Makefile.in includes
> CFLAGS = @CFLAGS@ ...
> 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
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040531/3d80f77a/attachment.bin
More information about the freebsd-ports