Date: Mon, 15 May 2000 11:49:37 +0200 (WET) From: Andris Pavenis To: Eli Zaretskii cc: djgpp AT delorie DOT com Subject: Re: OT: RHIDE and G77 (FORTRAN 77) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 15 May 2000, Eli Zaretskii wrote: > > On Sun, 14 May 2000, Lawrence Robins wrote: > > > Now I find that renaming or copying RHIDE_.ENV to RHIDE.ENV > > (as Mr. Frounze suggests), with no other changes, fixes the > > problem. > > > > Furthermore, editing DJGPP.ENV to change > > RHIDE_TYPED_LIBS_DJGPP.f=g2c m > > to > > RHIDE_TYPED_LIBS.f=g2c m > > with no other changes (i.e., don't create RHIDE.ENV from > > RHIDE_.ENV in this case) also fixes the problem. > > The same problem was fixed in previous versions of GCC and RHIDE by > defining RHIDE_TYPED_LIBS_DJGPP.f. That's why this variable was added > to DJGPP.ENV. If the reason for these new problems is that RHIDE was > changed, I think this is an unfortunate change. I wish people would > refrain from making such changes, to avoid breaking something that > took a long time to make work. > > > To summarize, the correct fix is to put the line > > RHIDE_TYPED_LIBS.f=g2c m > > in either RHIDE.ENV, or the [rhide] section of DJGPP.ENV. > > I would argue that, rather than change DJGPP.ENV, RHIDE should be > changed to use RHIDE_TYPED_LIBS_DJGPP.f, as it did previously. > Well. Looked through source archives I had on HD and didn't find RHIDE_TYPED_LIBS_DJGPP.f anywhere (only RHIDE_TYPED_LIBS.f). Also I don't see any special reason why to introduce such as there are no related file naming conflicts even for plain DOS: -lg2c -lm is Ok for both DOS and Linux. The problem is C++ where we must have -lstdc++ in Linux and -lstdcxx for DJGPP. Only reason why to provide different specs for DJGPP on Linux for Fortran libraries could be providing possibility to redefine it under both systems when user wants to add some library which is named differently on both systems. However even in this case this can be done without changes to sources: RHIDE_TYPED_LIBS.f=$(RHIDE_TYPED_LIBS_$(RHIDE_OS).f) RHIDE_TYPED_LIBS_DJGPP.f=-lfoox -lg2c -lm RHIDE_TYPED_LIBS_Linux.f=-lfoo+ -lg2c -lm Should we really do that. In this case ~ Anyway I see one problem here. I didn't find sources where I have changed RHIDE_TYPED_LIBS.f to correct value in idespec.cc even if I remeber I did it sometime (perhaps change is lost sometimes). Put correct string into idespec.cc Andris