HEADS UP: Ports are not ready for CFLAGS=-O2 in 6.0
Jon Door
jondoor at udor.net
Sun Jul 3 15:36:21 GMT 2005
Kris Kennaway wrote:
>On Sat, Jul 02, 2005 at 09:47:44PM -0700, Adam Weinberger wrote:
>
>
>>Kris Kennaway wrote:
>>
>>
>>>About a week ago des changed the default value of CFLAGS to "-O2
>>>-pipe" on FreeBSD 6.0-CURRENT. While this is believed to be safe for
>>>compiling world + kernel on -CURRENT thesedays (because the aliasing
>>>bugs that are exposed with -O2 have been fixed), it's definitely *not*
>>>safe for compiling many ports (there are at least 350 ports that emit
>>>warnings about aliasing, and would probably have runtime errors when
>>>compiled with -O2; moreover, a number of ports fail to even build with
>>>-O2).
>>>
>>>Therefore, if you compile ports on FreeBSD 6.0, you should set
>>>CFLAGS=-O -pipe in your /etc/make.conf for now, until we can resolve
>>>this problem more satisfactorily.
>>>
>>>Kris
>>>
>>>
>>This is just an FYI for whomever cares: all GNOME metaports build
>>cleanly in a -CURRENT jail with -O2.
>>
>>
>
>This was a mail from last year, but thanks anyway :)
>
>Kris
>
>P.S. The problem is only if you build without -fno-strict-alias, which
>is the default now.
>
>
Does it make sense to introduce a CFLAGS_PORTS option? Basically an
override used when compiling ports as opposed to world?
More information about the freebsd-current
mailing list