Many years ago I discovered that Glibc does not build with "gcc -O0" while conducting some experiments. If I remember correctly LFS was around version 5.1 or so at that time. The Glibc in LFS v.5.1 is version 2.3.3.
I consulted my good friend Richard of Free Software Foundation. He conveyed my message to the Glibc developers. Their response was that the developers "consider -O2 the standard". Thus this message: # error "glibc cannot be compiled without optimization" My memory is sketchy but I recall that a certain form of inlined functions was a problem. I do not think that code that relies on optimization is a good idea. It is bad for portability and security. -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page