From owner-freebsd-stable@FreeBSD.ORG Sun Aug 28 15:09:56 2005 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17DF016A41F for ; Sun, 28 Aug 2005 15:09:56 +0000 (GMT) (envelope-from rene@82-168-75-155-bbxl.xdsl.tiscali.nl) Received: from 82-168-75-155-bbxl.xdsl.tiscali.nl (82-168-75-155-bbxl.xdsl.tiscali.nl [82.168.75.155]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3693B43D45 for ; Sun, 28 Aug 2005 15:09:54 +0000 (GMT) (envelope-from rene@82-168-75-155-bbxl.xdsl.tiscali.nl) Received: from 82-168-75-155-bbxl.xdsl.tiscali.nl (localhost [127.0.0.1]) by 82-168-75-155-bbxl.xdsl.tiscali.nl (8.13.4/8.13.4) with ESMTP id j7SF9qQr066426; Sun, 28 Aug 2005 17:09:52 +0200 (CEST) (envelope-from rene@82-168-75-155-bbxl.xdsl.tiscali.nl) Received: (from rene@localhost) by 82-168-75-155-bbxl.xdsl.tiscali.nl (8.13.4/8.13.1/Submit) id j7SF9nsx066384; Sun, 28 Aug 2005 17:09:49 +0200 (CEST) (envelope-from rene) Date: Sun, 28 Aug 2005 17:09:47 +0200 From: Rene Ladan To: Boris Samorodov Message-ID: <20050828150947.GA58038@82-168-75-155-bbxl.xdsl.tiscali.nl> References: <55023220@srv.sem.ipt.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <55023220@srv.sem.ipt.ru> User-Agent: Mutt/1.4.2.1i Cc: stable@freebsd.org Subject: Re: 6.0 and -O2 option X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2005 15:09:56 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 28, 2005 at 04:30:19PM +0400, Boris Samorodov wrote: > Hi! >=20 >=20 > As for 5.x notes about -O2 (libalias, gcc) were removed at revision > 1.229.2.7 of /usr/src/share/examples/etc/make.conf. But for 6.0-BETA3 > we do have these warnings. Should they be removed as for 5.x? Is it > safe to use -O2 to build/install kernel, world, ports fro 6.0? >=20 Kernel and world seem to be ok with -O2, for ports it is not advised. I have this in /etc/make.conf: # -- all -- # =2Eif ${.CURDIR:M/usr/src*} CFLAGS=3D-O2 -pipe =2Eelse CFLAGS=3D-O -pipe =2Eendif CPUTYPE?=3Dpentium3 # -- ports -- # WITH_OPTIMIZED_CFLAGS=3Dyes So kernel and world (which source lives in /usr/src) are built with -O2, while anything else is built with -O. Some ports allow optimized compiler flags with WITH_OPTIMIZED_CFLAGS. > WBR > --=20 > bsam > Regards, Rene --=20 GPG fingerprint =3D 5FFA 3959 3377 C697 8428 24D0 BF3E F4A9 AE33 5DCC "It won't fit on the line." -- me, 2001 --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDEdO6vz70qa4zXcwRAjYMAJ4lSkOoiilLtcT3roO0BWEmDp92DgCZAfUd 8InPasCty7FX7fjGGXsXGCk= =fcTP -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--