Nathan Coulson
Linux to Dos(32bit) Cross Compiler
I have built this in the past, using the work from http://www.delorie.com/djgpp/. My origional hint (found at lin2win.txt has the directions, but I have not used this toolchain for actual dos program development.
Currently this uses the precompiled djcrx files.
Downloads
- Binutils 2.23.2 - ftp://ftp.gnu.org/gnu/binutils/binutils-2.23.2.tar.bz2
- djcrx 2.04 - http://ap1.pp.fi/djgpp/djdev/djgpp/20130326/djcrx204.zip
- GCC 4.8.1 - ftp://ftp.gnu.org/gnu/gcc/gcc-4.8.1/gcc-4.8.1.tar.bz2
- GCC 4.8.1 djgpp patch - gcc-4.8.1-djgpp_fixes-1.patch
Binutils
- mkdir build
- cd build
- ../configure --prefix=/usr --target=i586-pc-msdosdjgpp --with-sysroot=/usr/i586-pc-msdosdjgpp/sysroot
- make
- make install
DJCRX
Host headers and libraries for dos, installed to the sysroot. The above download is a snapshot of djcrx 2.04 which has not been released yet
- install -d -m755 /usr/i586-pc-msdosdjgpp/{bin,sysroot/dev/env/DJDIR}
- cp -a include /usr/i586-pc-msdosdjgpp/sysroot
- cp -a lib /usr/i586-pc-msdosdjgpp/sysroot
- cd src/stub
- gcc -O2 stubify.c -o /usr/i586-pc-msdosdjgpp/bin/stubify
- gcc -O2 stubedit.c -o /usr/i586-pc-msdosdjgpp/bin/stubedit
GCC
- patch -Np1 -i gcc-4.8.1-djgpp_fixes-1.patch
- mkdir build
- cd build
- install -d -m755 /usr/i586-pc-msdosdjgpp/sysroot/dev/env/DJDIR/include
- ../build/configure --prefix=/usr --target=i586-pc-msdosdjgpp --enable-languages=c --with-sysroot=/usr/i586-pc-msdosdjgpp/sysroot --libexecdir=/usr/lib --disable-static --disable-libssp
- make
- make install