Missing CFLAGS for some objects

Florian Weimer fweimer@redhat.com
Fri Apr 21 16:14:17 GMT 2023


* Tomasz Dziendzielski via Libc-help:

> Hello,
> one of our developers reported that when we build libc in our environment
> using Yocto Project we end up with corrupted debug symbols even though the
> -g flag is passed to the CFLAGS variable. I noticed that in fact some gcc
> commands (about ~300) are missing -g flag in the invocation. So now my
> question is: is there some reason why some objects are built without CFLAGS?
> You can get the list of objects without debug symbols (and CFLAGS) by
> setting CFLAGS=" -g " for make and using grep for gcc or cross gcc in the
> make execution log file and grep with an invert match for ' -g '.

Those are all linker invocations as far as I can see?  The -g flag will
be dropped by the compiler anyway.

Thanks,
Florian



More information about the Libc-help mailing list