[oe] prevent -O0 for glibc builds?

Khem Raj raj.khem at gmail.com
Thu Jul 10 15:21:24 UTC 2008


On Thu, 2008-07-10 at 15:58 +0200, Robert Schuster wrote:
> Hi,
> recently I set the (debug) optimization flags to "-g -O0" (= really
> no-optimization and full debug infos) and got an error from the glibc
> builds because glibc's configury told me that it cannot be compiled with
> no optimization.
> 
> Would it be possible that the glibc recipes replace -O0 with something
> else and print a note about this instead of failing? The reason is that
> the current behavior prevents me from compiling a whole image without
> optimization.
> 
> The reason I want -O0 in the first place is that while debugging an
> executable gdb told me that certain variables where optimized out.

glibc expects some optimizations like inlining for loader's early
startup code because it can not make function calls as the PLT has not
yet been relocated.

Thx

-Khem

> 
> Regards
> Robert
> 
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel





More information about the Openembedded-devel mailing list