Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588076 - dev-libs/klibc-2.0.4 USE=-custom-cflags don't respect own default flags
Summary: dev-libs/klibc-2.0.4 USE=-custom-cflags don't respect own default flags
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2016-07-05 16:36 UTC by Denis Kaganovich
Modified: 2018-06-20 14:39 UTC (History)
0 users

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


Attachments
klibc keep default CFLAGS (klibc-nocustom-cflags.patch,975 bytes, patch)
2016-07-05 16:41 UTC, Denis Kaganovich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Kaganovich 2016-07-05 16:36:50 UTC
dev-libs/klibc-2.0.4 USE=-custom-cflags build with CFLAGS (amd64: "-Os -fno-ident -fomit-frame-pointer -mno-sse -falign-functions=1 -falign-jumps=1 -falign-loops=1 -fno-asynchronous-unwind-tables") replaced by "-nostdlib". Resulting code is near +500M.
Comment 1 Denis Kaganovich 2016-07-05 16:41:33 UTC
Created attachment 439798 [details, diff]
klibc keep default CFLAGS
Comment 2 Pacho Ramos gentoo-dev 2016-08-12 13:50:25 UTC
do you want to proxy maintain this?
https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
Comment 3 Nikita Zlobin 2017-11-28 13:24:51 UTC
Hello. It seems, problem is in ebuild.
Just look to these emake args:
        $(use custom-cflags || echo SKIP_)HOSTCFLAGS="${CFLAGS}" \
        $(use custom-cflags || echo SKIP_)HOSTLDFLAGS="${LDFLAGS}" \
        $(use custom-cflags || echo SKIP_)KLIBCOPTFLAGS="${CFLAGS}" \

I grepped through sorces with this:
# grep -nR -e 'SKIP_' /var/calculate/tmp/portage/dev-libs/klibc-2.0.4-r3/work/klibc-2.0.4 | grep Kbuild

...and got empty output.

While e.g. HOSTCFLAGS is found only in Makefiles across all sources tree, but not more.
Comment 4 Nikita Zlobin 2017-11-28 13:28:45 UTC
So, up to current klibc version - custom-cflags USE flag was simply pointless dumb. Though i'm not exprt in that, imho fact, that some kernel kinds allow to configure CPU type to native, thus building with -march=native, would be useful to enable such feature for klibc too.
Comment 5 Nikita Zlobin 2017-11-28 21:09:10 UTC
I'm sorry for unintentional desinfo.
Did not notice own mistake, until attempt to manually run all commands from src_compile in order to reproduce bug with misfound havesyscall.h.