Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 28243

Summary: add USE debug to sys-libs/glibc
Product: Gentoo Linux Reporter: Alexander Gabert (RETIRED) <pappy>
Component: [OLD] DevelopmentAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander Gabert (RETIRED) gentoo-dev 2003-09-09 01:18:23 UTC
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
Comment 1 SpanKY gentoo-dev 2003-09-09 08:07:03 UTC
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
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-11 08:06:57 UTC
Yep, you need nostrip to FEATURES:

 # FEATURES="nostrip" CFLAGS="-g -ggdb" emerge glibc