Glibc Optimizations?

Tomislav Greguric greguric at
Mon Aug 28 12:01:23 PDT 2000

Hi Gerard!

On Mon, 28 Aug 2000, Gerard Beekmans wrote:

> > I seem to remeber using optimization flags (eg $CFLAGS) on glibc.  Now that 
> > optimization stuff is moved after we build glibc (which isn't rebuilt) glibc 
> > won't be optimized. Perhaps one can't optimize glibc; if this is the case 
> > sorry for this letter.
> You can optimize Glibc. I guess I haven't thought of it when I moved it
> around. I have run my LFS systems with optimizations for a while now and
> another system without. I cannot see any performance difference, so I
> reall start to wonder why we do it. Perhaps it's easier on the CPU, but
> I don't think it will make that big of a difference. Opinions?

No, it won't. That's what the glibc README says on this (or one of
the other files in the distribution). They explicitly say that one
shouldn't optimize it, 'cause this may provoke compiler bugs, and once
a bug is in the library, it will affect a lot of programs.


More information about the lfs-dev mailing list