This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Need guidance in building a cross-compiler.
- To: egcs at egcs dot cygnus dot com
- Subject: Re: Need guidance in building a cross-compiler.
- From: Scott Howard <scott at objsw dot com>
- Date: Thu, 14 Jan 1999 11:25:29 -0800
- Organization: @Home Network
- References: <001e01be3fe0$4c9af340$6a0ffea9@bri>
Hello,
have a look at the CrossGCC FAQ, http://www.objsw.com/CrossGCC ; it will
get you started.
Also, you might want to subscribe to the crossgcc mailing list, which is
dedicated to discussion of issues concerning cross development using the
Gnu tools. The FAQ has details on how to subscribe.
Finally, a complete linux-hosted cross development package targeting
Win32 may be downloaded by anonymous ftp from
ftp://ftp.objsw.com/pub/crossgcc/linux-x-win32 . This was contributed
by Mumit Khan.
> Brian Wagener wrote:
>
> I am about to make a C++ cross-compiler with egcs 1.1.1 . And due to
> the fact that i can not find any current documentation on the subject
> I wanted to see if anyone could see my plan and tell me if I am on the
> right track. What I need is using egcs in linux(redhat 5.1, AMD
> K6-2), I need to compile binaries for linux and 32bit dos. I have
> already downloaded binutils 2.9.1 and all of egcs except the g77
> packages. I see that egcs 1.1.1 comes with the standard c++
> libraries, so do I need to download any other libraires/includes?
> Also I have figured I have to do everything twice since I am building
> for two targets, is this correct? But please let me know if I have
> anything wrong or if I need some addittional libraries, or include
> files. Thanks,
>
> Well here is what I have so far.
>
> Binutils:
> # once for msdos target.
> ./Configure --prefix /usr/local/ --host i686-redhat-linux
> --target i686-go32-msdos
> make
> make install
> make clean
> # and for linux target
> ./Configure --prefix /usr/local/ --host i686-redhat-linux
> --target i686-redhat-linux
> make
> make install
>
> egcs:
> # Build first for linux target. I figure it would be safer to
> build native one first?
> ./Configure --target i686-go32-msdos
> make bootstrap
> make install
> make clean
> # Now build cross-compiler
> ./Configure --target i686-linux-redhat
> make cross
> make install LANGUAGES="c++"'
>
> ****
> Brian Wagener -- wagener@cs.fsu.edu