Mail Archives: djgpp/2009/01/29/19:04:47
> Yes, you can cross-compile to ELF, but I guess DJ means the
> difficult part is linking, esp. shared libraries or more complex
> stuff like that.
Yes. You have to build what is essentially a "sys-root" - all the
headers, libraries, etc from the target linux system. Then you build
a cross-gcc, cross-binutils, etc. *Then* you start building your own
programs.
> Of course, the only ELF-based tools I know of were Daniel Borca's
> DJGPP/ELF,
That's a native ELF. For cross-ELF it's a lot simpler (in theory),
just build gcc+binutils for whatever target you want; the gcc
executables themselves remain plain DJGPP programs, they just
*produce* non-djgpp programs.
> As far as Linux distros, DJ should've been more specific (or else
> maybe you can tell us what you want?).
I don't have to be specific, pretty much all Linux distros these days
are at least mostly LSB compliant, which means they all have about the
same degree of difficulty cross-compiling. Of course, I'm talking
about mainstream distros, like Fedora or Debian. The custom tiny ones
(like OpenWRT) usually come with their own development sys-root.
- Raw text -