Mail Archives: djgpp/2001/05/06/13:15:03
> Date: Sun, 6 May 2001 11:20:25 -0500
> From: JT Williams <jeffw AT darwin DOT sfbr DOT org>
>
> Ok, I realize I'm long overdue for a gcc upgrade. Let's say I install
> gcc 2.95.3. In the README Andris warns against keeping an old gcc
> installation around (unless you know what you are doing). But given that
> a gcc 2.7.2.1 installation requires only half a dozen files and doesn't
> assume the directory structure of later gcc's, wouldn't it be relatively
> simple to keep the 2.7.2.1 compiler in addition to the 2.95.3 setup?
> Any suggestions on how to arrange this?
Try this:
- Rename the old gcc.exe to gcc2721.exe.
- Create a directory lib/gcc-lib/djgpp/2.721/ and move the old
cpp.exe, cc1.exe, and cc1plus.exe from bin to this new directory.
Move the old lib/libgcc.a and lib/specs to that directory as well.
- Rename the old lang/ directory to lang-2.721/.
- Edit djgpp.env and add a [gcc2721] section with this content:
[gcc2721]
COMPILER_PATH=%DJDIR%/lib/gcc-lib/djgpp/2.721/
LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib/gcc-lib/djgpp/2.721;%DJDIR%/lib
CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang-2.721/cxx;%DJDIR%/include
(Note the trailing slash in the value of COMPILER_PATH: it's
important!)
Thereafter, you should be able to invoke the old compiler as
"gcc2721".
This is untested, so caveat emptor! (And please tell me if it works ;-)
- Raw text -