having a new ebuild sys-devel/glibc-debug with debugging symbols in it would make it easier for people to do debugging where calls into libc return segfaults. CFLAGS="-g -ggdb" does not work for the original sys-libs/glibc, it remains without debugging symbols Reproducible: Always Steps to Reproduce: 1. CFLAGS="-g -ggdb" emerge sys-libs/glibc 2. gcc -g -ggdb -o hello hello.c 3. gdb hello Actual Results: no debugging symbols in glibc because the CFLAGS somewhere get lost Expected Results: debugging symbols in glibc to trace calls into libc and back not necessary
umm you have to enable FEATURES=nostrip otherwise the libraries are stripped before the merge ... a better request would be to add USE flag support for debug
Yep, you need nostrip to FEATURES: # FEATURES="nostrip" CFLAGS="-g -ggdb" emerge glibc