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

Bug 387149

Summary: =dev-libs/libffi-3.0.10[debug] enables CFLAGS="-g"
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: New packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED WONTFIX    
Severity: minor    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Agostino Sarubbo gentoo-dev 2011-10-14 17:12:46 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -g -DFFI_DEBUG -march=native -O2 -Wall -fexceptions -c ../src/debug.c  -
fPIC -DPIC -o src/.libs/debug.o


Please drop
Comment 1 SpanKY gentoo-dev 2011-10-15 17:42:37 UTC
in general, i don't see much value in catching automatic -g if it doesn't override the user CFLAGS:
 - it doesn't change the generated code at all
 - it all gets stripped out when the package finishes installing into $D
 - fairly certain it adds no significant overhead to build time

do you have any reason for reconsidering ?
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2011-10-15 18:04:32 UTC
I think the idea is that debug shouldn't _just_ turn on -g.  If it does then it shouldn't be a USE flag.  Looks like it also turns on -DFFI_DEBUG here so agreed.
Comment 3 SpanKY gentoo-dev 2011-10-15 19:33:55 UTC
true, USE=debug should do more than just turn on -g.  if there are packages doing that, then we should file bugs to drop the USE=debug support.
Comment 4 Agostino Sarubbo gentoo-dev 2011-10-15 23:51:51 UTC
(In reply to comment #1)
> do you have any reason for reconsidering ?

Same of Ryan's thought