On 5/23/19 5:14 PM, Akira Urushibata via lfs-dev wrote:
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.

You can set CFLAGS, but it is not needed. I do not, but others do. Generally I think that the upstream developers know what the best optimizations should be for their applications and set that by default.

  -- Bruce

--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to