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]

On Wed, Oct 12, 2011 at 16:14:57 -0400, Ken Hornstein wrote:

> 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 
>   -Wl,-rpath-link,/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/lib  
> -L/Users/kenh/NetBSD-5.0.1/obj/destdir.evbarm/lib 
> -Wl,-rpath-link,/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 
> /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
> right now.

Jut use a bit of symlinking in TOOLDIR and you can avoid ~all those
extra -ifoo and -nofoo flags.  I have an old write up about that at


Home | Main Index | Thread Index | Old Index