Date: Sun, 28 Aug 2005 17:09:47 +0200 From: Rene Ladan <r.c.ladan@student.tue.nl> To: Boris Samorodov <bsam@ipt.ru> Cc: stable@freebsd.org Subject: Re: 6.0 and -O2 option Message-ID: <20050828150947.GA58038@82-168-75-155-bbxl.xdsl.tiscali.nl> In-Reply-To: <55023220@srv.sem.ipt.ru> References: <55023220@srv.sem.ipt.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050828150947.GA58038>