delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/04/09:06:10

From: LaPaglia <"mlapaglia"@bikerider.dot.com*nospam>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Cross compilation
Date: Sun, 04 May 1997 00:06:38 -0500
Organization: Earthlink Network, Inc.
Lines: 22
Message-ID: <5kh5gh$8hf@chile.earthlink.net>
References: <c=GB%a=_%p=Indigo_Active_Vi%l=CRIANLARICH-970502082504Z-814 AT crianlarich DOT Indigo>
Reply-To: mlapaglia AT bikerider, .dot.com*nospam
NNTP-Posting-Host: cust33.max16.new-orleans.la.ms.uu.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> Has anyone been successful in rebuilding the GNU C on a DOS box for
> cross compilation?
> If so what pitfalls did you find? Are there any caveats that I should
> know about?

I just did it for the m68k using gcc-2.7.2.1.  I used djgpp in Win95.
The biggest problem was setting the environment up to emulate unix.
I recomment using bash located in the djgpp archive and copy bash.exe
to /bin/sh.exe so that the scripts supplied by GNU work out of the box.
Also, get the fileutils and put them in your path, prehaps with 
dj's gcc.  But, remove ln.exe since it only works for linking .exe's
which will cause havok when the configure scripts try to link
include files.  There are some unix things msdos wont like, so I 
just caught them as I went along.

Hope this helps.
-Mike


Mike LaPaglia
mlapaglia at bikerider dot com - spam deterrent (maybe)
-------------------------------------------------------

- Raw text -


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