This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mingw -> linux cross compiler


Eljay Love-Jensen <eljay@adobe.com> writes:

> Now let me guess your next question, "How do I make a GCC compiler
> for Linux hosted on Cygwin/WinNT?"  Ahem... ummm... I don't know.
> Anyone have a useful URL or advice?

I don't have a useful URL.  While people do Linux -> Windows all the
time, I doubt Windows -> Linux is common.  The basic operation would
be

    configure --build=i386-cygwin --host=i386-linux-gnu --prefix=/....
    make

I'll note that you do need Linux header files and a Linux glibc.
There is no substitute for that.  Fortunately Linux binaries are easy
to come by.  I wouldn't recommend trying to build glibc on a Windows
system; that sounds like a world of hurt.

Also, you need to build the binutils as well as gcc.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]