From owner-freebsd-current@FreeBSD.ORG Sun Jul 3 15:36:21 2005 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4E5C16A41C for ; Sun, 3 Jul 2005 15:36:21 +0000 (GMT) (envelope-from jondoor@udor.net) Received: from mail.mercenarylabs.com (ns1.mercenarylabs.com [12.158.191.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EA8A43D48 for ; Sun, 3 Jul 2005 15:36:21 +0000 (GMT) (envelope-from jondoor@udor.net) Received: from [127.0.0.1] (wilson [12.158.191.94]) by mail.mercenarylabs.com (Postfix) with ESMTP id 106ABAD1C for ; Sun, 3 Jul 2005 10:36:21 -0500 (CDT) Message-ID: <42C805F2.4060103@udor.net> Date: Sun, 03 Jul 2005 11:36:18 -0400 From: Jon Door User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050326) X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@FreeBSD.org References: <20041102222000.GA65845@xor.obsecurity.org> <42C76DF0.8070307@magnesium.net> <20050703055842.GA1933@xor.obsecurity.org> In-Reply-To: <20050703055842.GA1933@xor.obsecurity.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: HEADS UP: Ports are not ready for CFLAGS=-O2 in 6.0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jondoor@udor.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2005 15:36:21 -0000 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?