X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Thu, 29 Jan 2009 19:04:21 -0500 Message-Id: <200901300004.n0U04LqF002047@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: <66f4d58f-5bb6-4af7-bea4-793f4b2ad735 AT n21g2000vba DOT googlegroups DOT com> (message from Rugxulo on Thu, 29 Jan 2009 14:59:33 -0800 (PST)) Subject: Re: 1] UNIX/LINUX Compilation 2] IDE References: <0KE70056UYX26YR0 AT mta2 DOT srv DOT hcvlny DOT cv DOT net> <200901291546 DOT n0TFkH4Z006381 AT envy DOT delorie DOT com> <66f4d58f-5bb6-4af7-bea4-793f4b2ad735 AT n21g2000vba DOT googlegroups DOT com> Errors-To: nobody AT delorie DOT com > 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.