FreeBSD-7.0 fails to compile after upgrade

Yuri yuri at rawbw.com
Tue Nov 20 00:11:03 PST 2007


Quoting Yuri Pankov <yuri.pankov at gmail.com>:


> Yes, that's what I'm talking about, you don't have any optimizations 
> (-Ox) in flags to cc and that's why it fails. Make sure that you don't 
> have CFLAGS set to '' in your environment or elsewhere (cd /usr/src ; 
> make -V CFLAGS  will show your current settings).

Interesting.
Still not clear why would this error be caused bythe lack of -Ox option.
6.3 was compiling successfully with the same CFLAGS.
I had some -I in CFLAGS. And didn't realize that system build picks up
optimization options from there instead of appending them to existing CFLAGS.


Yuri


More information about the freebsd-questions mailing list