www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/08/26/17:58:30

From: Nigel Stephens <nigel AT algor DOT co DOT uk>
Date: Fri, 26 Aug 94 20:06:06 +0100
To: kf AT copernic DOT lasinc DOT qc DOT ca (Khalil Foundy)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: using gcc as a cross compiler
References: <9408261359 DOT AA14019 AT copernic DOT lasinc DOT qc DOT ca>

Khalil Foundy (kf AT copernic DOT lasinc DOT qc DOT ca ) writes:
 > Hi everybody,
 > I have just discovered that gcc can be installed as a cross-compiler which
 > means taht it can compile a program for an architecture different from
 > the one which is installed on. I am now wondering if I can use my Dec Unix
 > station to compile programs that can be executed on an masdos machine
 > with go32 ?
 > Has someone did it ? and how ?
 > 
 > please let me know.
 > thanks a lot.

It's pretty simple.  Apply the patches in the DJGPP DIFFS directory to
the standard GNU releases, then configure each sub-system with 

	configure --target=i386-go32

Make and install each tool (they'll be put in /usr/local unless you
specify --prefix=... to configure).  Then copy the DJGPP libraries and
include files to /usr/local/i386-go32/lib and
/usr/local/i386-go32/include respectively.

You can now invoke the compiler and tools as i386-go32-gcc,
i386-go32-ld, etc.

 _________________________________________________________________________
 Nigel Stephens, Algorithmics Ltd, 3 Drayton Park, London, N5 1NU, England
 phone: +44 71 700 3301    fax: +44 71 700 3400   email: nigel AT algor DOT co DOT uk

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019