This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Building a compiler for cygwin to target djgpp
- To: <cygwin at sourceware dot cygnus dot com>
- Subject: Building a compiler for cygwin to target djgpp
- From: "Peter Fox" <peter dot fox at ifrsys dot com>
- Date: Wed, 7 Feb 2001 09:01:04 -0000
How I built the cross compiler for DOS.
Basically follow the instructions in
http://www.delorie.com/howto/djgpp/linux-x-djgpp.html, except..
I used djcrx203.zip, and copied the files rather than linked them.
I used binutils-20001221-src.tar.gz, from the cygwin ftp site, which
compiled 'out the box' and did not require the patch to te-go32.h or
tc-i386.h.
I used gcc-2.95.2.tar.gz, which had a few problems. The solution is,
after configuring as standard, extract the djgppxgcc-asis.tgz file to
overwrite some files. The fixes include: that given in the howto, it
prevents incompatible duplicate declarations of size_t and wchar_t,
and fixes the include path for libchill so it can find the correct
limits.h. This will need to be done more than once, as configurations
during the compile process overwrite the fixed version of stddef.h,
and the libchill Makefile prevents libchill configuring properly.
gcc-2.95.2 sequence (assumes in the gcc build directory, and
djgppxgcc-asis.tgz is in that directory:
$ tar xvzf djgppxgcc-asis.tgz
$ touch Makefile
$ make
$ # will bomb out complaining about size_t and wchar_t in stddef.h
$ tar xvzf djgppxgcc-asis.tgz
$ touch Makefile
$ rm i586-pc-msdosdjgpp/libchill/Makefile
$ make
$ # will bomb out complaining about PATH_MAX being undeclared
$ tar xvzf djgppxgcc-asis.tgz
$ touch Makefile i586-pc-msdosdjgpp/libchill/Makefile
$ make
$ make install
Note that a patch to fix gcc-2.95.2 would be much more useful, but I
can't justify the time at work to do this - sorry.
Peter Fox.
djgppxgcc-asis.tgz
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple