buildworld doesn't like -O2

Damian Gerow dgerow at afflictions.org
Wed Dec 10 10:07:43 PST 2003


Thus spake Dag-Erling Sm?rgrav (des at des.no) [10/12/03 11:23]:
: Damian Gerow <dgerow at afflictions.org> writes:
: > Okay, after some playing around, it turns out that something in the PAM code
: > really doesn't like -O2 optimization -- I have CFLAGS=-O2 -pipe, and this is
: > what I see:
: 
: >From  src/share/examples/etc/make.conf:
: 
: # CFLAGS controls the compiler settings used when compiling C code.
: # Note that optimization settings above -O (-O2, ...) are not recommended
: # or supported for compiling the world or the kernel - please revert any
: # nonstandard optimization settings to "-O" before submitting bug reports
: # to the developers.

Which is why I said further on:

> Yes, I'm aware the -O2 isn't supported.  World builds fine with just -O.
> I'll just drop back to that.

I had initially forgotten that I was running with -O2, I now have egg on my
face, and I'm going to go wipe it off.


More information about the freebsd-current mailing list