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

Bug 4145

Summary: Ability to strip debug flags doing emerge installation
Product: Portage Development Reporter: David Nielsen <Lovechild>
Component: CoreAssignee: Daniel Robbins (RETIRED) <drobbins>
Status: RESOLVED FIXED    
Severity: normal CC: webmaster
Priority: High    
Version: 2.0   
Hardware: All   
OS: Linux   
URL: http://forums.gentoo.org/viewtopic.php?t=6052
Whiteboard:
Package list:
Runtime testing required: ---

Description David Nielsen 2002-06-25 11:36:51 UTC
I don't know if we are doing this already, but I see many of the users already 
user -fomit-frame-pointer and that indicates to me that many don't need tp 
debug, so why not set a USE varible maybe to automatically strip the installed 
ebuild after ended compilation for it's debug flags:  
 
The command would be:  
strip --strip-debug filename  
 
the LFS project stats this numbers:  
A dynamic Bash binary with debugging symbols: 1.2 MB  
A dynamic Bash binary without debugging symbols: 478 KB  
/lib and /usr/lib (glibc and gcc files) with debugging symbols: 87 MB  
/lib and /usr/lib (glibc and gcc files) without debugging symbols: 16 MB  
 
That means a smaller install, and if I remember correctly a faster system, as 
the binary we have to load is smaller.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-09-03 17:05:08 UTC
This is already done by default.