Mail Archives: djgpp/2001/08/30/22:48:13
Just in case anyone has similar problems in the future, I've made an
explicit list of the steps I took in getting a linux->dos cross-compiler
working with gcc 3.0.1 and binutils 2.11.2.
Thanks again to everyone!
The procedure is below,
Will Robinson
Plaintext description of the procedure for installing
a linux->DOS cross-compiler using gcc-3.0.1 and
binutils-2.11.2:
(insert your username in place of wsr23)
1. (as root) mkdir -p /opt/djgpp
2. chown -R wsr23.wsr23 /opt/djgpp
3. mkdir /opt/djgpp/i586-pc-msdosdjgpp
4. download djcrx203.zip from www.delorie.com
5. unzip -a djcrx203.zip (in /opt/djgpp/i586-pc-msdosdjgpp)
6. mkdir ~/temp
7. download binutils-2.11.2.tar.gz, gcc-3.0.1.tar.gz
8. untar binutils-2.11.2.tar.gz and gcc-3.0.1.tar.gz in ~/temp
(tar xvzf)
9. cd binutils-2.11.2
10. mkdir djbuild
11. cd djbuild
12. ../configure --target=i586-pc-msdosdjgpp --prefix=/opt/djgpp
13. make
14. make install
15. download gcc30s2.zip from DJGPP archive (google search); unzip to a
temp directory
16. apply all .diff's included in gcc30s2.zip to the corresponding files
in the
~/temp/gcc-3.0.1 tree. [Don't apply Makefile.am.diff]
17. copy all non-.diff files included in the diffs directory of
gcc30s2.zip to the
corresponding directories in ~/temp/gcc-3.0.1
18. add
#include_next "limits.h"
before the final #endif in ~/temp/gcc-3.0.1/gcc/glimits.h
19. mkdir -p
~/temp/gcc-3.0.1/djbuild/i586-pc-msdosdjgpp/libstdc++-v3/include/i586-pc-msdosdjgpp/bits
20. copy ~/temp/gcc-3.0.1/libstdc++-v3/config/os/djgpp/bits/*
to
~/temp/gcc-3.0.1/djbuild/i586-pc-msdosdjgpp/libstdc++-v3/include/i586-pc-msdosdjgpp/bits/
21. chmod ugo-w
~/temp/gcc-3.0.1/djbuild/i586-pc-msdosdjgpp/libstdc++-v3/include/i586-pc-msdosdjgpp/bits/*
22. cd ~/temp/gcc-3.0.1
23. mkdir djbuild
24. cd djbuild
25. ../configure --target=i586-pc-msdosdjgpp --prefix=/opt/djgpp
--enable-languages="c,c++"
26. make
27. make install
28. cd /opt/djgpp/i586-pc-msdosdjgpp/src/stub
29. gcc -o stubify stubify.c
30. cp stubify /opt/djgpp/bin
31. cp stubify /opt/djgpp/i586-pc-msdosdjgpp/bin
32. su -c "ln -s /opt/djgpp/bin/i586-pc-msdosdjgpp-gcc /usr/bin/gcc-dos",
etc. for all /opt/djgpp/bin/i586-pc-msdosdjgpp-* files.
33. su -c "ln -s /opt/djgpp/i586-pc-msdosdjgpp
/usr/local/i586-pc-msdosdjgpp"
34. ln -s /opt/djgpp/lib/gcc-lib/i586-pc-msdosdjgpp/3.0.1/*
/opt/djgpp/i586-pc-msdosdjgpp/lib/
35. ln -s /opt/djgpp/i586-pc-msdosdjgpp/lib/libstdc++.a
/opt/djgpp/i586-pc-msdosdjgpp/lib/libstdcxx.a
- Raw text -