[git commit] help: Document CROSS=

Mike Frysinger vapier at gentoo.org
Thu May 10 02:49:25 UTC 2012


On Wednesday 09 May 2012 22:07:15 Rich Felker wrote:
> On Wed, May 09, 2012 at 05:19:48PM -0400, Mike Frysinger wrote:
> > On Wednesday 09 May 2012 12:29:57 Rich Felker wrote:
> > > Would it be possible to head in the direction of not neeting
> > > CROSS_COMPILE/CROSS? That is, make it so the build system just works
> > > with cross compiling as long as CC is set to the right compiler? I can
> > > think of a few potential issues like the way stripping is performed
> > > that might need a cross-specific tool other than CC
> > 
> > the current system uses ar and nm and ld directly.  the first two could
> > be moved to partial linking so there's only ld and cc, but i don't know
> > if you can do partial linking with gcc easily.  obviously stripping
> > would still need to be sep, but i think stripping isn't done by default,
> > so that isn't a big deal.
> 
> Partial linking can't replace ar because it won't avoid pulling in .o
> files that aren't actually used.

we link with -Wl,--whole-archives, so that aspect doesn't happen.

> However, except for obscure platforms, ar is platform independent;

unfortunately, i see people adding fixes to Gentoo due to these broken ar's.  
it's not as bad as ranlib which doesn't work across diff targets.

> nm is the same if you're using GNU binutils (at least as long as the
> target and host are both ELF based)

nm is only used in relation to ar.  so once ar is gone, so is nm.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120509/3e77f80f/attachment.asc>


More information about the uClibc mailing list