www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/03/09/08:51:28

From: Nigel Stephens <nigel AT algor DOT co DOT uk>
Date: Thu, 9 Mar 1995 13:04:22 GMT
To: "Christoph P. Kukulies" <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: cross compiling
References: <199503091053 DOT LAA29240 AT gilberto DOT physik DOT rwth-aachen DOT de>

"Christoph P. Kukulies" (kuku AT gilberto DOT physik DOT rwth-aachen DOT de) writes:
 > I'm thinking again about building a cross deveopment environment
 > under FreeBSD targeting DOS/djgpp.
 > 
 > I read that some people on this list have done so using Linux
 > but I think BSD shouldn't be a problem.
 > 
 > Can someone point me to the right direction or better, point me
 > to a tar.gz containing everything I need :-) ?

I do it on BSDI/386, which is much the same as FreeBSD.   This is from
memory, so some steps may be slightly wrong.

1) Get a copy of the source code of gcc-2.6.? and binutils-2.? (? =
   latest DJ112 version).  (e.g. from ftp://src.doc.ic.ac.uk/gnu or
   some GNU mirror nearer to you).

2) Apply any patches from the DJGPP 1.12 "diffs" directories: you don't
   need to worry about the changes to *.bat files, only those to the
   source & header files.

3) Configure each of gcc and binutils by using:
	./configure --host=i386-bsd --target=i386-go32

   (It may be that some of the go32 config files are missing, in which
    case I've got working copies, let me know what's missing).
 
4) Run "make" in each directory: don't worry if building libgcc*.a
   fails, because you'll be replacing it anyway.

5) Run "make install".

6) Delete the contents of /usr/local/lib/gcc-lib/i386-go32/2.6.?/include, 
   and copy the include tree from the DJ112 release to it.

7) Delete /usr/local/lib/gcc-lib/i386-go32/2.x.x/lib/*.a, and copy the
   *.a files from the DJ112 release.

8) You should now be able to invoke the new compiler and binary tools by
   preceding them with "i386-go32-" (e.g. i386-go32-gcc).

9) It should be possible to build coff2exe etc too, but I usually run
   this step on the DOS platform.

Good luck

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

- Raw text -


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