Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387149 - =dev-libs/libffi-3.0.10[debug] enables CFLAGS="-g"
Summary: =dev-libs/libffi-3.0.10[debug] enables CFLAGS="-g"
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-14 17:12 UTC by Agostino Sarubbo
Modified: 2011-10-15 23:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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