Informations about gcc optimization

Simon Comeau Martel martelsc at videotron.ca
Sat Oct 12 08:05:51 PDT 2002


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?
-- 
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 mailing list