Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cross-compiling various packages for ARM [GishPuppy]

>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
>for wget:

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' 
'LDFLAGS=-B/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/usr/lib  -Wl,-nostdlib   
 -Wl,--fatal-warnings -L/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/usr/lib   
-L/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/usr/lib' 'CPPFLAGS=-isystem 

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
right now.


Home | Main Index | Thread Index | Old Index