Re: cross-compiling various packages for ARM [GishPuppy]
Ken Hornstein <kenh <at> pobox.com>
2011-10-12 20:14:57 GMT
>I've been playing with a SheevaPlug. I was able to have a fully functional
>system. However, now I'd like to add different "packages", like wget, zsh,
>etc. I cannot compile these packages directly on the Sheeva, it's damn too
>slow, so I tried to cross-compile, without success. Here is what I did
I can't claim to be a cross-compiling expert either, but here's what
I use successfully for cross-compiling on my NetBSD ARM system (a
TS-7200). I extracted these from the cross-compilation environment
that NetBSD itself uses:
./configure '--host' 'arm--netbsdelf'
-L/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/usr/lib' 'CPPFLAGS=-isystem /Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/usr/include'
I have arm--netbsdelf-gcc in my path, and configure picks that up. Right
off the bat I think using -isystem instead of -nostdlib might help you out.
And you're going to need a lot more things in LDFLAGS than what you've got