Mail Archives: djgpp/1998/05/27/09:54:35
From: Jari Oksanen <jari DOT oksanen AT helsinki DOT fi>
Subject: Re: fortran with DJGPP
Date sent: Wed, 27 May 1998 14:10:48 +0100
> Some things you must beware:
>
> For g77, you have to change your gcc. I don't know how this goes with
> the new gcc 2.8.x. That is one reason why I haven't yet upgraded my gcc.
g77-0.5.23 for gcc-2.8.1 is released by FSF about week ago. It no more
requires to patch gcc driver (gcc.exe in DJGPP). It should be enough to
do following steps (however I tested it only with one alpha version in begin of
May). You need system that supports long filenames under DJGPP
(Win95 is Ok, NT is not):
1) unpack sources of gcc-2.8.1 for DJGPP (archive gcc281s.zip)
2) unpack g77-0.5.23.tar.gz from ftp.gnu.org and copy them to
right place corresponding to readme in g77 archive
3) patch 2 files in fortran sources directory (Makefile.in and make-lang.in if
I remember correctly). You should replace 'stamp-objlist' with 's-objlist'
4) add line
export CONFIG_SHELL=bash
to file djmake.sh in directory build.djg
5) after that You can change to directory build.djg
6) configure sources ('./djconfig.sh' from bash)
7) make all ('./djmake.sh all CFLAGS=-O2' from bash). I put CFLAGS here
as perhaps You don't need debugging info
8) install ('./djmake.sh install CFLAGS=-O2 prefix=....' from bash) and
enjoy.
Note I'm perhaps going to upload updated gcc-2.8.1 archives for DJGPP after
some time as there are some corrections.
Andris
- Raw text -