Re: 6.0 and -O2 option
From: Rene Ladan (r.c.ladan_at_student.tue.nl)
Date: 08/28/05
- Previous message: Rong-En Fan: "Re: got a panic on 5.4-STABLE"
- In reply to: Boris Samorodov: "6.0 and -O2 option"
- Next in thread: Norberto Meijome: "Re: 6.0 and -O2 option"
- Reply: Norberto Meijome: "Re: 6.0 and -O2 option"
- Reply: Boris Samorodov: "Re: 6.0 and -O2 option"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 28 Aug 2005 17:09:47 +0200 To: Boris Samorodov <bsam@ipt.ru>
On Sun, Aug 28, 2005 at 04:30:19PM +0400, Boris Samorodov wrote:
> Hi!
>
>
> 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?
>
Kernel and world seem to be ok with -O2, for ports it is not advised.
I have this in /etc/make.conf:
# -- all -- #
.if ${.CURDIR:M/usr/src*}
CFLAGS=-O2 -pipe
.else
CFLAGS=-O -pipe
.endif
CPUTYPE?=pentium3
# -- ports -- #
WITH_OPTIMIZED_CFLAGS=yes
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
> --
> bsam
>
Regards,
Rene
-- GPG fingerprint = 5FFA 3959 3377 C697 8428 24D0 BF3E F4A9 AE33 5DCC "It won't fit on the line." -- me, 2001
- application/pgp-signature attachment: stored
- Previous message: Rong-En Fan: "Re: got a panic on 5.4-STABLE"
- In reply to: Boris Samorodov: "6.0 and -O2 option"
- Next in thread: Norberto Meijome: "Re: 6.0 and -O2 option"
- Reply: Norberto Meijome: "Re: 6.0 and -O2 option"
- Reply: Boris Samorodov: "Re: 6.0 and -O2 option"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]