Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379965 - sys-apps/busybox: CFLAGS="-g -O0" get appended when USE=debug
Summary: sys-apps/busybox: CFLAGS="-g -O0" get appended when USE=debug
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-20 14:01 UTC by Agostino Sarubbo
Modified: 2011-11-07 00:08 UTC (History)
0 users

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


Attachments
build.log (busybox-1.19.0:20110820-135524.log,451.29 KB, text/plain)
2011-08-20 14:01 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2011-08-20 14:01:47 UTC
Created attachment 284013 [details]
build.log

x86_64-pc-linux-gnu-gcc -Wp,-MD,procps/.pstree.o.d   -I/usr/include/tirpc -std=gnu99 -Iinclude -Ilibbb  -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D"BB_VER=KBUILD_STR(1.19.0)" -DBB_BT=AUTOCONF_TIMESTAMP -march=native -O2 -g0 -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement  -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -static-libgcc  -g -O0     -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(pstree)"  -D"KBUILD_MODNAME=KBUILD_STR(pstree)" -c -o procps/pstree.o procps/pstree.c

amd64box ~ # emerge --info | grep CFLAGS
CFLAGS="-march=native -O2 -g0"

So, in the first part all cflags environment is not respected:

x86_64-pc-linux-gnu-gcc -Wp,-MD,applets/.usage.d  -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer      -Iinclude -Iinclude -o applets/usage applets/usage.c  

Please ignore it if is expected.
Thanks
Comment 1 SpanKY gentoo-dev 2011-08-20 17:42:21 UTC
it's because of your USE=debug
 * CONFIG_DEBUG=y

not terribly inclined to root this out, but it is technically against current USE=debug meaning