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

Bug 583432

Summary: toolchain.eclass: Adjust for cross-compilation in prefix
Product: Gentoo/Alt Reporter: Michael Weiser <michael>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Adjust for cross-compilation in prefix

Description Michael Weiser 2016-05-18 19:00:21 UTC
The attached patch adjusts the --with-sysroot option to configure in toolchain.eclass so that cross-toolchains can be built inside prefixes. Otherwise compilation of libgcc will fail because libc.so.6 can not be found in /usr/$CTARGET/lib instead of $EPREFIX/usr/$CTARGET/lib.

Reproducible: Always
Comment 1 Michael Weiser 2016-05-18 19:00:59 UTC
Created attachment 434636 [details, diff]
Adjust for cross-compilation in prefix
Comment 2 Benda Xu gentoo-dev 2016-06-23 00:47:02 UTC
Thanks Michael, the patch is considered in bug 531610.

*** This bug has been marked as a duplicate of bug 531610 ***