Summary: | toolchain.eclass - gcc_do_filter_flags() should not replace -Os with -O2 and disable shared libraries. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ytrezq |
Component: | Eclasses | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | VERIFIED NEEDINFO | ||
Severity: | normal | CC: | amd64 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | MIPS | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=291870 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
ytrezq
2014-08-04 15:31:20 UTC
That's not a problem if the compiler itself is build with -O2 since it would make it faster. I'm more concerned by shared libraries for programs compiled by gcc (libgcc libfortan...). So the main problem is that they can't be shared. Making them shared would save lot of more memory than compiling them with -Os. please post the full build logs as attachments to show what you're talking about. include the full command you actually ran w/crossdev. (In reply to SpanKY from comment #2) > please post the full build logs as attachments to show what you're talking > about. include the full command you actually ran w/crossdev. Logs won't tell many things since gcc stage compile successfully. There's no need for logs just look at /usr/portage/eclass/toolchain.eclass at the line 917 : *-uclibc*) if ! echo '#include <features.h>' | \ $(tc-getCPP ${CTARGET}) -E -dD - 2>/dev/null | \ grep -q __HAVE_SHARED__ then #291870 confgcc+=( --disable-shared ) That part disable the shared version of gcc libraries. The next one disable -Os: 1339 gcc_do_filter_flags() { 1340 strip-flags 1341 replace-flags -O? -O2 (In reply to lcellier from comment #3) your vague reports aren't useful. please post the logs requested. |