Informations about gcc optimization
ken at kenmoffat.uklinux.net
Sat Oct 12 17:37:45 PDT 2002
On Sat, 12 Oct 2002, Simon Comeau Martel wrote:
> On Sat, 12 Oct 2002 01:10:00 +0100 (BST)
> Ken Moffat <ken at kenmoffat.uklinux.net> wrote:
> > These days I
> > normally build LFS with -Os
> -Os = Optimization for size and -O2 ??
> If it's that, I think that I'll use the following to build LFS:
> CFLAGS="-Os -s -fomit-frame-pointer -march=i686"
> CXXFLAGS="-Os -s -fomit-frame-pointer -march=i686"
> (Unsetting them all when the book suggest it)
> And for all other packages after:
> CFLAGS="-O3 -s -fomit-frame-pointer -march=i686"
> CXXFLAGS="-O3 -s -fomit-frame-pointer -march=i686"
> Any objection?
None, it's your distro! I'd suggest `-s' for all packages (it's
technically a flag for the linker rather than the compiler). If it was
my system I'd not bother with -fomit-frame-pointer in glibc, (or
anywhere else) but throw in the -Os and the -march.
Out of the darkness a voice spake unto me, saying "smile, things could be
worse". So I smiled, and lo, things became worse.
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message
More information about the lfs-support